Echo cancellation using closed-form solutions

ABSTRACT

A system that utilizes closed-form solutions to perform echo cancellation is described. The system includes a filter, filter parameter determination logic and a combiner. The filter is configured to process a far-end audio signal in accordance with one or more filter parameters to generate an estimated echo signal. The filter parameter determination logic is configured to update estimated statistics associated with the far-end audio signal and a microphone signal based on instantaneous statistics associated with the far-end audio signal and the microphone signal, and calculate the one or more filter parameters based upon the updated estimated statistics. The combiner is configured to generate an estimated near-end audio signal by subtracting the estimated echo signal from the microphone signal.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional Patent Application No. 61/601,986, filed on Feb. 22, 2012, and U.S. Provisional Patent Application No. 61/672,615, filed on Jul. 17, 2012. Each of these applications is incorporated by reference herein in its entirety.

BACKGROUND

1. Technical Field

The subject matter described herein generally relates to systems and methods for performing echo cancellation in an audio communication system, such as a telephony system.

2. Description of Related Art

Acoustic echo is a phenomenon that occurs in audio communication systems, such as telephony systems, when speech generated by a remote or “far-end” speaker and played back over a local or “near-end” loudspeaker is picked up by a near-end microphone and transmitted back to the far end. The transmitted signal is a delayed version of the original, which causes the echo. The received far-end signal does not transfer directly from the loudspeaker to the microphone, but is subject to the environment in which the loudspeaker and microphone are located. This may include differing signal paths causing reverberation and spectral shaping. These effects are the transfer function between the loudspeaker and the microphone. Such transfer function is dynamic, as objects in the environment move or the loudspeaker and/or microphone change position.

Acoustic echo cancellation refers to a process by which the acoustic echo is modeled and then subtracted from the signal that is to be transmitted to the far end. Acoustic echo cancellation is traditionally performed using an adaptive filter to estimate the transfer function between the loudspeaker and microphone. Typically, the filter parameters of the adaptive filter are incrementally modified over time to account for changes in certain instantaneous statistics associated with the signal being played back over the loudspeaker and the signal received via the microphone. For such acoustic echo cancellers there is always a risk of divergence and the possibility of objectionable artifacts. Furthermore, for such acoustic cancellers, it is necessary to detect periods when the near-end and far-end speakers are talking simultaneously (a condition known as “double-talk”) and to stop updating the adaptive filter during such periods to prevent divergence.

BRIEF DESCRIPTION OF THE DRAWINGS/FIGURES

The accompanying drawings, which are incorporated herein and form part of the specification, illustrate the subject matter of the present application and, together with the description, further serve to explain the principles of the embodiments described herein and to enable a person skilled in the relevant art(s) to make and use such embodiments.

FIG. 1 is a block diagram of a system that illustrates the challenge of acoustic echo cancellation.

FIG. 2 is a block diagram of a system that is equivalent to the system shown in FIG. 1, but with certain operations now being performed in the frequency domain.

FIG. 3 is a block diagram of a system that performs acoustic echo cancellation using a hybrid frequency domain acoustic echo canceller.

FIG. 4 is a flowchart of a method for performing acoustic echo cancellation using closed-form solutions.

FIG. 5 is a block diagram of a system that performs acoustic echo cancellation using a non-linear acoustic echo canceller based on power filters.

FIG. 6 is a block diagram of a system that includes a non-linear acoustic echo canceller similar to that shown in FIG. 5 but transformed to the frequency domain.

FIG. 7 is a block diagram of a system that includes a practical non-linear acoustic echo cancellation structure.

FIG. 8 is a block diagram of a system that includes a practical non-linear acoustic echo cancellation structure with a memoryless limiter.

FIG. 9 is a block diagram of a system that includes a practical non-linear acoustic echo cancellation structure comprising two hybrid frequency domain acoustic echo cancellers (FDAECs) and a memoryless limiter.

FIG. 10 depicts a graph showing the performance of two different acoustic echo cancellation structures in accordance with two different embodiments.

FIG. 11 is a block diagram of a system that includes a practical non-linear acoustic echo cancellation structure comprising two hybrid FDAECs and a preprocessor that performs a generic preprocessing function.

FIG. 12 depicts a graph showing the performance of different acoustic echo cancellations structures in accordance with various embodiments.

FIG. 13 is a block diagram of a non-linear acoustic echo canceller with a steepest descent adaptation of a preprocessing function.

FIG. 14 depicts a diagram that illustrates plots of various example non-linear preprocessing functions in accordance with certain embodiments.

FIG. 15 is a flowchart of a practical method for performing acoustic echo cancellation.

FIG. 16 depicts an example computer system that may be used to implement certain embodiments.

FIGS. 17-20 provide mathematic details for deriving closed-form solutions for hybrid frequency domain acoustic echo cancellers in accordance with certain embodiments.

The features and advantages of the subject matter of the present application will become more apparent from the detailed description set forth below when taken in conjunction with the drawings, in which like reference characters identify corresponding elements throughout. In the drawings, like reference numbers generally indicate identical, functionally similar, and/or structurally similar elements. The drawing in which an element first appears is indicated by the leftmost digit(s) in the corresponding reference number.

DETAILED DESCRIPTION 1. Introduction

The following detailed description discloses numerous example embodiments. The scope of the present patent application is not limited to the disclosed embodiments, but also encompasses combinations of the disclosed embodiments, as well as modifications to the disclosed embodiments.

References in the specification to “one embodiment,” “an embodiment,” “an example embodiment,” etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not necessarily referring to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to affect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.

In the following sections, various systems and methods for performing acoustic echo cancellation will be described. Each of these systems and methods may be implemented as part of an audio communication system or device to help reduce or prevent the occurrence of acoustic echo. By way of example, the systems and methods described herein may be implemented in a desktop or mobile telephone, a computer-executable softphone, an audio teleconferencing system, or the like. More generally, the systems and methods described herein may be implemented in any audio communication system in which the occurrence of acoustic echo is possible.

The acoustic echo cancellation techniques described in the following sections are described as processing speech signals. However, persons skilled in the relevant art(s) will readily appreciate that all of the acoustic echo cancellation techniques described herein can also process music signals, and audio signals generally. Thus, any reference to a speech signal is not intended to be limiting. Where the term “speech signal” is used, the term “music signal” and “audio signal” may be used interchangeably.

Persons skilled in the relevant art(s) will also readily appreciate that the techniques described herein for performing acoustic echo cancellation may also be applied to attenuate or cancel other types of echo that may be present in an audio communication system. For example, such techniques may be applied to perform line echo cancellation in an audio communication system.

2. Systems for Performing Acoustic Echo Cancellation

A system that performs acoustic echo cancellation can be viewed as a multi-sensor-input, single-output system that operates to suppress in a signal produced by a microphone, a signal being played back by a loudspeaker and picked up as echo by the microphone. In this context, the sensor signals would be the microphone signal and the signal being played back by the loudspeaker.

2.1 Linear Acoustic Echo Cancellation

FIG. 1 is a block diagram of a system 100 that illustrates the challenge of acoustic echo cancellation. System 100 may be implemented, for example, in an audio communication system or device. As shown in FIG. 1, system 100 is operable to receive a far-end speech signal x(n). Far-end speech signal x(n) is converted from digital to analog form by a digital-to-analog (D/A) converter 102, amplified by an amplifier 104, and played back by a loudspeaker 106. As further shown in FIG. 1, a microphone 108 is operable to pick up the speech of a near-end speaker, represented as s(t), as well as an echo of the far-end speech being played back by loudspeaker 106, shown as r(t). The acoustic echo signal is subject to the acoustic environment and, as an example, is affected by the room impulse response. The signal captured by microphone 108 is passed to an analog-to-digital (A/D) converter 110, which converts it from analog to digital form. The output of A/D converter 110 is a microphone signal d(n), which is the sum of a near-end speech signal s(n) plus an acoustic echo signal r(n). As also shown in FIG. 1, far-end speech signal x(n) is also passed to a filter 112 having an impulse response h(k), which filters x(n) to produce an estimated acoustic echo signal {circumflex over (r)}(n). Impulse response h(k) is intended to model the impulse response of the acoustic echo path between loudspeaker 106 and microphone 108. A combiner 114 subtracts estimated acoustic echo signal {circumflex over (r)}(n) from microphone signal d(n), thereby producing an estimated near-end speech signal ŝ(n). Estimated near-end speech signal ŝ(n) may then be transmitted to another node in an audio communication system, such as a far-end audio communication system or device.

It is to be understood that the operations performed by the various components of system 100 are performed in the time domain. FIG. 2 is a block diagram of a system 200 that is essentially equivalent to system 100 of FIG. 1, but with certain operations now being performed in the frequency domain. As shown in FIG. 2, system 200 is operable to receive a far-end speech signal x(n). Far-end speech signal x(n) is converted from digital to analog form by a D/A converter 202, amplified by an amplifier 204, and played back by a loudspeaker 206. As further shown in FIG. 2, a microphone 208 is operable to pick up the speech of a near-end speaker, represented as s(t), as well as an echo of the far-end speech being played back by loudspeaker 206, shown as r(t). The acoustic echo signal is subject to the acoustic environment and, as an example, is affected by the room impulse response. The signal captured by microphone 208 is passed to an A/D converter 210, which converts it from analog to digital form. The output of A/D converter 210 is a microphone signal d(n), which is the sum of a near-end speech signal s(n) plus an acoustic echo signal r(n). Microphone signal d(n) is passed to a Fast Fourier Transform (FFT) component 212 that operates to produce a frequency domain representation of microphone signal d(n), which is shown as D(f). D(f) is the sum of a frequency domain representation of near-end speech signal s(n), which is shown as S(f), and a frequency domain representation of acoustic echo signal r(n), which is shown as R(f).

As also shown in FIG. 2, far-end speech signal x(n) is also passed to an FFT component 214 that operates to produce a frequency domain representation of x(n), which is shown as X(f). X(f) is passed to a filter 216 that carries out the filtering of X(f) in the frequency domain by multiplying X(f) by H(f) (which is a frequency domain representation of impulse response h(k)), thereby producing an estimated acoustic echo signal in the frequency domain, {circumflex over (R)}(f). A combiner 218 subtracts estimated acoustic echo signal {circumflex over (R)}(f) from microphone signal D(f), thereby producing an estimated near-end speech signal in the frequency domain, Ŝ(f). Estimated near-end speech signal Ŝ(f) is then passed to an Inverse Fast Fourier Transform (IFFT) component 220 that operates to produce a time domain representation of Ŝ(f), which is shown as ŝ(n). Estimated near-end speech signal ŝ(n) may then be transmitted to another node in an audio communication system, such as a far-end audio communication system or device.

In one embodiment, the FFT operations performed by FFT components 212 and 214 and the IFFT operations performed by IFFT component 220 are performed on a frame basis with suitable overlap and windowing for proper sampling of the spectrum in time.

2.1.1 Closed-Form Single-Tap Frequency Domain Solution

A closed-form solution can be derived in the time or frequency domain without loss of generalization. In the following, it is carried out in the frequency domain based on system 200 shown in FIG. 2. The objective is to minimize the output power of the acoustic echo canceller:

$\begin{matrix} \begin{matrix} {E_{\hat{S}} = {E\left\{ {{\hat{s}}^{2}(n)} \right\}}} \\ {\approx {\sum\limits_{n}{{\hat{s}}^{2}(n)}}} \\ {= {\sum\limits_{m}{\sum\limits_{f}{{\hat{S}\left( {m,f} \right)} \cdot {{\hat{S}}^{*}\left( {m,f} \right)}}}}} \end{matrix} & \left( {{Eq}.\mspace{14mu} 1} \right) \end{matrix}$

where n is the discrete time index, m is the frame index for the Discrete Fourier Transforms (DFTs), and f is the frequency index. The output is expanded as

$\begin{matrix} \begin{matrix} {{\hat{S}\left( {m,f} \right)} = {{D\left( {m,f} \right)} - {\hat{R}\left( {m,f} \right)}}} \\ {= {{D\left( {m,f} \right)} - {{H(f)} \cdot {X\left( {m,f} \right)}}}} \end{matrix} & \left( {{Eq}.\mspace{14mu} 2} \right) \end{matrix}$

Allowing the acoustic echo cancellation taps, H_(l)(f), to be complex prevents taking the derivative with respect to the coefficients due to the complex conjugate (of Ŝ(m, f)) not being differentiable. The complex conjugate does not satisfy the Cauchy-Riemann equations. However, since the cost function of Eq. 1 is real, the gradient can be calculated as

$\begin{matrix} {{{\nabla\left( E_{\hat{S}} \right)} = {\frac{\partial E_{\hat{S}}}{{\partial{Re}}\left\{ {H_{l}(f)} \right\}} + {j\frac{\partial E_{\hat{S}}}{{\partial{Im}}\left\{ {H_{l}(f)} \right\}}}}},{l = 1},2,\ldots \mspace{14mu},M} & \left( {{Eq}.\mspace{14mu} 3} \right) \end{matrix}$

(see S. Haykin, “Adaptive Filter Theory,” Prentice Hall, 2^(nd) edition, 1991, which is incorporated by reference herein). Hence, the gradient will be with respect to the complex tap for every frequency bin, H(f), is expanded as

$\begin{matrix} \begin{matrix} {{\nabla_{H{(f)}}\left( E_{\hat{S}} \right)} = {\frac{\partial E_{\hat{S}}}{{\partial{Re}}\left\{ {H(f)} \right\}} + {j\frac{\partial E_{\hat{S}}}{{\partial{Im}}\left\{ {H(f)} \right\}}}}} \\ {= {{\sum\limits_{m}{{{\hat{S}}^{*}\left( {m,f} \right)}\frac{\partial{\hat{S}\left( {m,f} \right)}}{{\partial{Re}}\left\{ {H(f)} \right\}}}} +}} \\ {{{{\hat{S}\left( {m,f} \right)}\frac{\partial{{\hat{S}}^{*}\left( {m,f} \right)}}{{\partial{Re}}\left\{ {H(f)} \right\}}} +}} \\ {{{j{\sum\limits_{m}{{{\hat{S}}^{*}\left( {m,f} \right)}\frac{\partial{\hat{S}\left( {m,f} \right)}}{{\partial{Im}}\left\{ {H(f)} \right\}}}}} +}} \\ {{{\hat{S}\left( {m,f} \right)}\frac{\partial{{\hat{S}}^{*}\left( {m,f} \right)}}{{\partial{Im}}\left\{ {H(f)} \right\}}}} \\ {= {{\sum\limits_{m}{{- {{\hat{S}}^{*}\left( {m,f} \right)}}{X\left( {m,f} \right)}}} - {{\hat{S}\left( {m,f} \right)}{X^{*}\left( {m,f} \right)}} +}} \\ {{{j{\sum\limits_{m}{{- {{\hat{S}}^{*}\left( {m,f} \right)}}j\; {X\left( {m,f} \right)}}}} + {{\hat{S}\left( {m,f} \right)}j\; {X^{*}\left( {m,f} \right)}}}} \\ {= {{- 2}{\sum\limits_{m}{{\hat{S}\left( {m,f} \right)}{X^{*}\left( {m,f} \right)}}}}} \\ {= {{- 2}{\sum\limits_{m}{\left( {{D\left( {m,f} \right)} - {{H(f)}{X\left( {m,f} \right)}}} \right){X^{*}\left( {m,f} \right)}}}}} \\ {= {{2{H(f)}\left( {\sum\limits_{m}{{X\left( {m,f} \right)}{X^{*}\left( {m,f} \right)}}} \right)} -}} \\ {{2\left( {\sum\limits_{m}{{D\left( {m,f} \right)}{X^{*}\left( {m,f} \right)}}} \right)}} \\ {= 0} \end{matrix} & \left( {{Eq}.\mspace{14mu} 4} \right) \end{matrix}$

This solution can be written as

$\begin{matrix} {{{H(f)} = \frac{r_{D,X^{*}}(f)}{R_{X}(f)}}{where}} & \left( {{Eq}.\mspace{14mu} 5} \right) \\ {{R_{X}(f)} = {\sum\limits_{m}{{X\left( {m,f} \right)} \cdot {X^{*}\left( {m,f} \right)}}}} & \left( {{Eq}.\mspace{14mu} 6} \right) \\ {{r_{D,X^{*}}(f)} = {\sum\limits_{m}{{D\left( {m,f} \right)} \cdot {X^{*}\left( {m,f} \right)}}}} & \left( {{Eq}.\mspace{14mu} 7} \right) \end{matrix}$

2.1.2 Hybrid Closed-Form Frequency Domain Solution

In the example solution derived in Section 2.1.1 (single-tap per frequency bin) the frequency resolution is determined by the FFT size. In many cases, this is a system compromise in the interest of overall complexity, and the FFT size may not provide adequate frequency resolution to perform satisfactory acoustic echo cancellation. This will generally be the case if the size of the FFT is smaller than the impulse response of the acoustic echo path. It may not be practical to have a separate larger size FFT (and IFFT) only for the acoustic echo cancellation. To address this issue, this section provides an alternative approach in the form of applying a time direction filter to individual frequency bins to incorporate longer memory into the model of the acoustic path. Effectively, the time direction filters in individual frequency bins increase the frequency resolution by providing a non-flat frequency response within a bin. This approach also enables the acoustic echo canceller to have a longer tail length than that otherwise provided by the size of the FFT, which is useful for environments having high reverberation and thus a longer impulse response.

FIG. 3 is a block diagram of a system 300 that performs acoustic echo cancellation using a hybrid frequency domain acoustic echo canceller. System 300 may be implemented, for example, in an audio communication system or device. In FIG. 3, the notion of time of the frequency representation has been introduced to all the spectra by the variable m which is the FFT frame index. The unit of the delay line is one frame—in other words, z⁻¹ means one frame or FFT sample delay.

As shown in FIG. 3, system 300 is operable to receive a far-end speech signal x(n). Far-end speech signal x(n) is converted from digital to analog form by a D/A converter 302, amplified by an amplifier 304, and played back by a loudspeaker 306. As further shown in FIG. 3, a microphone 308 is operable to pick up the speech of a near-end speaker, represented as s(t), as well as an echo of the far-end speech being played back by loudspeaker 306, shown as r(t). The acoustic echo signal is subject to the acoustic environment and, as an example, is affected by the room impulse response. The signal captured by microphone 308 is passed to an A/D converter 310, which converts it from analog to digital form. The output of A/D converter 310 is a microphone signal d(n), which is the sum of a near-end speech signal s(n) plus an acoustic echo signal r(n). Microphone signal d(n) is passed to an FFT component 312 that operates to produce a frequency domain representation of microphone signal d(n) for FFT frame m, which is shown as D(m, f). D(m, f) is the sum of a frequency domain representation of near-end speech signal s(n) for FFT frame m, which is shown as S(m, f), and a frequency domain representation of acoustic echo signal r(n) for FFT frame m, which is shown as R(m, f).

As also shown in FIG. 3, far-end speech signal x(n) is also passed to an FFT component 314 that operates to produce a frequency domain representation of x(n) for FFT frame m, which is shown as X(m, f). Each frequency sub-band or component of X(m, f) is passed through a corresponding time direction filter having a set of acoustic echo cancellation taps H₀(f) through H_(K)(f) (collectively denoted taps 318 ₀ through 318 _(K) in FIG. 3). A delay line comprising a plurality of delay elements 316 ₀ through 316 _(K-1) operates to produce the necessary time-delayed frequency components for each time direction filter. The outputs of taps 318 ₀ through 318 _(K) are summed by combiners 320 ₀ through 320 _(K-1) for each time direction filter, thereby producing an estimated acoustic echo signal in the frequency domain for FFT frame m, {circumflex over (R)}(m, f). A combiner 322 subtracts {circumflex over (R)}(m, f) from D(m, f), thereby producing an estimated near-end speech signal in the frequency domain for FFT frame m, Ŝ(m, f). Ŝ(m, f) is then passed to an IFFT component 324 that operates to produce a time domain representation of Ŝ(m, f), which is shown as ŝ(n). Estimated near-end speech signal ŝ(n) may then be transmitted to another node in an audio communication system, such as a far-end audio communication system or device.

It should be noted that time direction filter order K can be frequency dependent so that the frequency resolution is not increased to the same extent in all frequency ranges.

The derivation of acoustic echo cancellation taps H₀(f) through H_(K)(f) will now be described. Again, the objective is to minimize the output power of the acoustic echo canceller:

$\begin{matrix} \begin{matrix} {E_{\hat{S}} = {E\left\{ {{\hat{s}}^{2}(n)} \right\}}} \\ {\approx {\sum\limits_{n}{{\hat{s}}^{2}(n)}}} \\ {= {\sum\limits_{m}{\sum\limits_{f}{{\hat{S}\left( {m,f} \right)}\; {{\hat{S}}^{*}\left( {m,f} \right)}}}}} \end{matrix} & \left( {{Eq}.\mspace{14mu} 8} \right) \end{matrix}$

where n is the discrete time index, m is the frame index for the DFTs, and f is the frequency index. The output for a particular frequency bin is expanded as

$\begin{matrix} \begin{matrix} {{\hat{S}\left( {m,f} \right)} = {{D\left( {m,f} \right)} - {\hat{R}\left( {m,f} \right)}}} \\ {= {{D\left( {m,f} \right)} - {\sum\limits_{l = 0}^{K}{{H_{l}(f)} \cdot {X\left( {{m - l},f} \right)}}}}} \end{matrix} & \left( {{Eq}.\mspace{14mu} 9} \right) \end{matrix}$

Allowing the acoustic echo cancellation taps, H_(l)(f), to be complex prevents taking the derivative with respect to the coefficients due to the complex conjugate (of Ŝ(m, f)) not being differentiable. The complex conjugate does not satisfy the Cauchy-Riemann equations. However, since the cost function of Eq. 8 is real, the gradient can be calculated as

$\begin{matrix} {{{\nabla\left( E_{\hat{S}} \right)} = {\frac{\partial E_{\hat{S}}}{{\partial{Re}}\left\{ {H_{l}(f)} \right\}} + {j\frac{\partial E_{\hat{S}}}{{\partial{Im}}\left\{ {H_{l}(f)} \right\}}}}},{l = 0},1,\ldots \mspace{14mu},K} & \left( {{Eq}.\mspace{14mu} 10} \right) \end{matrix}$

(see S. Haykin, “Adaptive Filter Theory,” Prentice Hall, 2^(nd) edition, 1991, which is incorporated by reference herein). Hence, the gradient will be with respect to K+1 complex taps for every frequency bin and result in a system of equations to solve for the complex AEC taps of every frequency bin. The gradient with respect to a particular complex tap, H_(k)(f), is expanded as

$\begin{matrix} \begin{matrix} {{\nabla_{H{(f)}}\left( E_{\hat{S}} \right)} = {\frac{\partial E_{\hat{S}}}{{\partial{Re}}\left\{ {H_{k}(f)} \right\}} + {j\frac{\partial E_{\hat{S}}}{{\partial{Im}}\left\{ {H_{k}(f)} \right\}}}}} \\ {= {{\sum\limits_{m}{{{\hat{S}}^{*}\left( {m,f} \right)}\frac{\partial{\hat{S}\left( {m,f} \right)}}{{\partial{Re}}\left\{ {H_{k}(f)} \right\}}}} + {{\hat{S}\left( {m,f} \right)}\frac{\partial{{\hat{S}}^{*}\left( {m,f} \right)}}{{\partial{Re}}\left\{ {H_{k}(f)} \right\}}} +}} \\ {{{j{\sum\limits_{m}{{{\hat{S}}^{*}\left( {m,f} \right)}\frac{\partial{\hat{S}\left( {m,f} \right)}}{{\partial{Im}}\left\{ {H_{k}(f)} \right\}}}}} + {{\hat{S}\left( {m,f} \right)}\frac{\partial{{\hat{S}}^{*}\left( {m,f} \right)}}{{\partial{Im}}\left\{ {H_{k}(f)} \right\}}}}} \\ {= {{\sum\limits_{m}{{- {{\hat{S}}^{*}\left( {m,f} \right)}}{X\left( {{m - k},f} \right)}}} - {{\hat{S}\left( {m,f} \right)}{X^{*}\left( {{m - k},f} \right)}} +}} \\ {{{j{\sum\limits_{m}{{- {{\hat{S}}^{*}\left( {m,f} \right)}}j\; {X\left( {{m - k},f} \right)}}}} + {{\hat{S}\left( {m,f} \right)}j\; {X^{*}\left( {{m - k},f} \right)}}}} \\ {= {{- 2}{\sum\limits_{m}{{\hat{S}\left( {m,f} \right)}{X_{k}^{*}\left( {m,f} \right)}}}}} \\ {= {{- 2}{\sum\limits_{m}{\left( {{D\left( {m,f} \right)} - {\sum\limits_{l = 0}^{K}{{H_{l}(f)}{X\left( {{m - l},f} \right)}}}} \right){X^{*}\left( {{m - k},f} \right)}}}}} \\ {= {{2{\sum\limits_{l = 0}^{K}{{H_{l}(f)}\left( {\sum\limits_{m}{{X\left( {{m - l},f} \right)}{X^{*}\left( {{m - k},f} \right)}}} \right)}}} -}} \\ {{2\left( {\sum\limits_{m}{{D\left( {m,f} \right)}{X^{*}\left( {{m - k},f} \right)}}} \right)}} \\ {= 0} \end{matrix} & \left( {{Eq}.\mspace{14mu} 11} \right) \end{matrix}$

The set of K+1 equations (for k=0, 1, . . . , K) of Eq. 11 provides a matrix equation for every frequency bin f to solve for H_(k)(f) k=0, 1, . . . , K:

$\begin{matrix} {\begin{bmatrix} {\sum\limits_{m}{{X\left( {m,f} \right)}{X^{*}\left( {m,f} \right)}}} & {\sum\limits_{m}{{X\left( {{m - 1},f} \right)}{X^{*}\left( {m,f} \right)}}} & \ldots & {\sum\limits_{m}{{X\left( {{m - K},f} \right)}{X^{*}\left( {m,f} \right)}}} \\ {\sum\limits_{m}{{X\left( {m,f} \right)}{X^{*}\left( {{m - 1},f} \right)}}} & {\sum\limits_{m}{{X\left( {{m - 1},f} \right)}{X^{*}\left( {m,{{- 1}f}} \right)}}} & \ldots & {\sum\limits_{m}{{X\left( {{m - K},f} \right)}{X^{*}\left( {{m - 1},f} \right)}}} \\ \vdots & \vdots & \ddots & \vdots \\ {\sum\limits_{m}{{X\left( {m,f} \right)}{X^{*}\left( {{m - K},f} \right)}}} & {\sum\limits_{m}{{X\left( {{m -},f} \right)}{X^{*}\left( {{m - K},f} \right)}}} & \ldots & {\sum\limits_{m}{{X\left( {{m - K},f} \right)}{X^{*}\left( {{m - K},f} \right)}}} \end{bmatrix}{\quad{\begin{bmatrix} {H_{0}(f)} \\ {H_{1}(f)} \\ \vdots \\ {H_{K}(f)} \end{bmatrix} = \begin{bmatrix} {\sum\limits_{m}{{D\left( {m,f} \right)}{X^{*}\left( {m,f} \right)}}} \\ {\sum\limits_{m}{{D\left( {m,f} \right)}{X^{*}\left( {{m - 1},f} \right)}}} \\ \vdots \\ {\sum\limits_{m}{{D\left( {m,f} \right)}{X^{*}\left( {{m - K},f} \right)}}} \end{bmatrix}}}} & \left( {{Eq}.\mspace{14mu} 12} \right) \end{matrix}$

This solution can be written as

$\begin{matrix} {{{{{\underset{\_}{\underset{\_}{R}}}_{X}(f)} \cdot {\underset{\_}{H}(f)}} = {{\underset{\_}{r}}_{D,X^{*}}(f)}}{where}} & \left( {{Eq}.\mspace{14mu} 13} \right) \\ {{{\underset{\_}{\underset{\_}{R}}}_{X}(f)} = {\sum\limits_{m}{{{\underset{\_}{X}}^{*}\left( {m,f} \right)} \cdot {\underset{\_}{X}\left( {m,f} \right)}^{T}}}} & \left( {{Eq}.\mspace{14mu} 14} \right) \\ {{{\underset{\_}{r}}_{D,X^{*}}(f)} = {\sum\limits_{m}{{D\left( {m,f} \right)} \cdot {{\underset{\_}{X}}^{*}\left( {m,f} \right)}}}} & \left( {{Eq}.\mspace{14mu} 15} \right) \\ {{{\underset{\_}{X}\left( {m,f} \right)} = \begin{bmatrix} {X\left( {m,f} \right)} \\ {X\left( {{m - 1},f} \right)} \\ \vdots \\ {X\left( {{m - K},f} \right)} \end{bmatrix}},{{\underset{\_}{H}(f)} = \begin{bmatrix} {H_{0}(f)} \\ {H_{1}(f)} \\ \vdots \\ {H_{K}(f)} \end{bmatrix}}} & \left( {{Eq}.\mspace{14mu} 16} \right) \end{matrix}$

and superscript “T” denotes non-conjugate transpose. The solution per frequency bin to the AEC taps is given by

H (f)=( R _(X)(f))⁻¹ ·r _(D,X*)(f)  (Eq. 17)

This appears to require a matrix inversion of order K+1. Accordingly, for a non-hybrid linear AEC it becomes a simple division consistent with Section 2.1.1. Although it requires a matrix inversion in general, in most practical applications this is not needed. Up to order 4 (hybrid order 3) direct-form solutions may be derived to solve Eq. 13. For the sake of completeness, mathematical details for deriving such solutions are provided in FIGS. 16-19. It should be noted that the correlation matrix R _(X)(f) is Hermitian (although not Toeplitz in general).

In one embodiment, a hybrid closed-form frequency domain solution for acoustic echo cancellation is used having a time direction filter order K=2 (i.e., 3 filter taps per frequency bin) for narrowband speech, while for wideband speech, a first order hybrid (i.e., 2 filter taps per frequency bin) is used.

2.2 Updating of Statistics

The closed-form solutions described above all require knowledge of various signal statistics: Eq. 6, 7, 14, and 15. In practice these must be estimated from the available signals/spectra, and should accommodate changes to the echo path. Changes to the echo path are a common result of a user or phone moving, or the physical environment changing. This can occur rapidly and the estimation of statistics needs to be able to properly track these changes, which are reflected in the statistics. This suggests using some sort of mean with a forgetting factor, and although many possibilities exist, a suitable approach for obtaining the estimated statistics comprises utilizing a running mean of the instantaneous statistics with a certain leakage factor (also referred to in the following as update rate). The term “instantaneous statistics” refers to individual products within the summations in Eq. 6, 7, 14 and 15.

In at least one embodiment, a rate for updating the estimated statistics necessary for implementing any of the closed-form solutions described above is controlled on a frequency bin by frequency bin basis in accordance with a measure of coherence between the frequency domain representation of the signal being sent to the speaker (e.g., X(f) as shown in FIG. 2 and elsewhere) and the frequency domain representation of the signal being received by the microphone (e.g., D(f) as shown in FIG. 2 and elsewhere) for each frequency bin. In one embodiment, the measure of coherence for each frequency bin is determined by calculating the squared magnitude of the normalized cross-spectrum between the signal being sent to the speaker and the signal being received by the microphone. However, this is only one example, and other methods for determining the measure of coherence on a frequency bin by frequency bin basis may be used.

Generally speaking, if the measure of coherence for a given frequency bin is low, then desired speech is likely being received via the microphone with little echo being present. However, if the measure of coherence is high then there is likely to be significant acoustic echo. In accordance with certain embodiments, an aggressive tracker is utilized that maps a high measure of coherence to a fast update rate for the estimated statistics and maps a low measure of coherence to a low update rate for the estimated statistics, which may include not updating at all. In an embodiment in which the statistics are estimated by calculating a running mean, the aforementioned mapping may be achieved by controlling the weight attributed to the current instantaneous statistics when calculating the mean. Thus, to achieve a slow update rate, little or no weight may be assigned to the current instantaneous statistics, but to achieve a fast update rate, more significant weight may be assigned current instantaneous statistics.

In further accordance with such an embodiment, a conservative tracker may also be used that applies a fixed update rate that is fairly slow but is constant. For each frequency bin, the result of the application of the closed-form solution of the acoustic echo canceller can be determined in accordance with the estimated statistics generated using the aggressive tracker and in accordance with the estimated statistics generated using the conservative tracker. For each frequency bin, the lower-power result may be selected as the output of the acoustic echo canceller for that frequency bin, since that result will be the one that removes the most echo. Furthermore, a “safety net” may be applied to each frequency bin such that if the selected result for that frequency bin has a power that is greater than that of the corresponding frequency bin of the microphone input signal, then the selected result may be discarded and the frequency component associated with the microphone input signal may be used instead. This can help avoid the introduction of distortion by the acoustic echo canceller and avoid divergence.

2.3 Exemplary Methods for Performing Practical Non-Linear Acoustic Echo Cancellation

FIG. 4 depicts a flowchart 400 of an exemplary method for performing acoustic echo cancellation using closed-form solutions in accordance with various embodiments. The steps of flowchart 400 will be described herein with continued reference to system 200 of FIG. 2 and system 300 of FIG. 3. However, the method is not limited to those implementations.

The method of flowchart 400 begins at step 402, in which a far-end speech signal and a microphone signal are received. In system 200 of FIG. 2, the far-end speech signal may comprise X(f), which is the frequency domain representation of far-end speech signal x(n), and the microphone signal may comprise D(f), which is the frequency domain representation of microphone signal d(n). In system 300 of FIG. 3, the far-end speech signal may comprise X(m, f), which is the frequency domain representation of far-end speech signal x(n) for FFT frame m, and the microphone signal may comprise D(m, f), which is the frequency domain representation of microphone signal d(n) for FFT frame m. However, these are only examples. As used herein, the term “far-end speech signal” is to be broadly construed to encompass any speech signal received from a far end in an audio communication system, regardless of whether such signal is in analog or digital form, regardless of whether such signal is represented in the time domain or frequency domain, and regardless of whether such signal has been processed after it is received from the far end. Furthermore, as used herein, the term “microphone signal” is to be broadly construed to encompass any audio signal originating from a microphone, regardless of whether such signal is in digital or analog form, regardless of whether such signal is represented in the time domain or frequency domain, and regardless of whether such signal has been processed after it is generated by the microphone.

At step 404, estimated statistics associated with the far-end speech signal and the microphone signal are updated based on instantaneous statistics associated with the far-end speech signal and the microphone signal. In system 200 of FIG. 2, the estimated statistics are updated based on instantaneous statistics that are represented by the individual products within the summations in Eq. 6 and 7. In system 300 of FIG. 3, the estimated statistics are updated based on instantaneous statistics that are represented by the individual products within the summations in Eq. 14 and 15.

The instantaneous statistics in Eq. 6 and 14 may be referred to as the instantaneous statistics of the far-end speech signal. Such instantaneous statistics may be determined for a particular frequency bin by multiplying the complex conjugate of the spectrum of the far-end speech signal for a particular frame and the particular frequency bin by the spectrum of the far-end speech signal for the particular frame and the particular frequency bin.

The instantaneous statics in Eq. 7 and 15 may be referred to as the instantaneous cross-channel statistics of the far-end speech signal and the microphone signal. Such instantaneous statistics may be determined for a particular frequency bin by multiplying the spectrum of the far-end speech signal for a particular frame and the particular frequency bin by a complex conjugate of the spectrum of the microphone signal for the particular frame and the particular frequency bin. Alternatively, the instantaneous cross-channel statistics of the far-end speech signal and the microphone signal may be determined for a particular frequency bin by multiplying a complex conjugate of the spectrum of the far-end speech signal for a particular frame and the particular frequency bin by the spectrum of the microphone signal for the particular frame and the particular frequency bin. In accordance with this alternative approach, a complex conjugate of the filter taps will be obtained, which can be accommodated for during the filtering operation.

In one embodiment, updating the estimated statistics comprises updating a running mean of the instantaneous statistics with a certain leakage factor, although this is merely one approach. As previously discussed in Section 2.2, the estimated statistics may be updated at a rate that is determined at least in accordance with a measure of coherence between the far-end speech signal and the microphone signal.

At step 406, one or more filter parameters are calculated based upon the updated estimated statistics. In system 200 of FIG. 2, the filter parameters comprise the acoustic echo cancellation tap h_(l)(f), while in system 300 of FIG. 3, the filter parameters are the acoustic echo cancellation taps H_(k)(f).

At step 408, the far-end speech signal is filtered in accordance with the one or more filter parameters calculated during step 606 to generate an estimated acoustic echo signal. In system 200 of FIG. 2, this step is performed using filter 216 that operates in the frequency domain to generate estimated acoustic echo signal {circumflex over (R)}(f). In system 300 of FIG. 3, this step is performed using a different time direction filter for each frequency bin to generate estimated acoustic echo signal {circumflex over (R)}(m, f). As noted above, filtering a frequency-domain representation of the far-end speech signal involves multiplication with the frequency domain representation of the impulse response, while filtering in the time domain or in the time direction involves convolution.

At step 410, an estimated near-end speech signal is generated by subtracting the estimated acoustic echo signal from the microphone signal. In system 200 of FIG. 2, this step is performed by combiner 218 which subtracts estimated acoustic echo signal {circumflex over (R)}(f) from microphone signal D(f), thereby producing estimated near-end speech signal in the frequency domain, Ŝ(f). In system 300 of FIG. 3, this step is performed by combiner 322 which subtracts estimated acoustic echo signal {circumflex over (R)}(m, f) from microphone signal D(m, f), thereby producing estimated near-end speech signal in the frequency domain for FFT frame m, Ŝ(m, f).

In an embodiment that utilizes both an aggressive tracker and a conservative tracker as discussed above in Section 2.2, an adaptive update rate may be used to generate a first estimated acoustic echo signal and a fixed update rate may be use to generate a second estimated acoustic echo signal. A first signal may then be generated by subtracting the first estimated acoustic echo signal from the microphone signal and a second signal may be generated by subtracting the second estimated acoustic echo signal from the microphone signal. The estimated near-end speech signal may then be generated by selecting for each of a plurality of frequency bins a frequency component from among a frequency component of the first signal and a frequency component of the second signal. For example, the lower-power frequency component may be selected for each frequency bin, since that result will be the one that removes the most echo.

In an embodiment that utilizes a safety net approach as discussed above in Section 2.2, the estimated acoustic echo signal may be subtracted from the microphone signal to generate a first signal. Then, the estimated near-end speech signal may be obtained by selecting for each of a plurality of frequency bins a frequency component from among a frequency component of the first signal and a frequency component of the microphone signal. For example, the lower-power frequency component may be selected for each frequency bin. This can help avoid the introduction of distortion by the acoustic echo canceller and avoid divergence.

In an embodiment that utilizes an aggressive tracker and a conservative tracker and also utilizes the safety net approach, an adaptive update rate may be used to generate a first estimated acoustic echo signal and a fixed update rate may be use to generate a second estimated acoustic echo signal. A first signal may then be generated by subtracting the first estimated acoustic echo signal from the microphone signal and a second signal may be generated by subtracting the second estimated acoustic echo signal from the microphone signal. The estimated near-end speech signal may then be generated by selecting for each of a plurality of frequency bins a frequency component from among a frequency component of the first signal, a frequency component of the second signal, and a frequency component of the microphone signal. For example, the lowest-power frequency component may be selected for each frequency bin, since that result will be the one that removes the most echo.

In system 200 and system 300, it is to be understood that steps 402, 404 and 406 may be performed by logic within the system that is not explicitly shown in FIGS. 2 and 3. Such logic may be referred to as filter parameter determination logic. Furthermore, step 410 relating to generating the estimated near-end audio signal may be performed by combiner 218 and 322, even where dual trackers and/or a safety net approach are used. In such embodiments, it is to be understood that combiner 218 and combiner 322 may perform operations beyond a simple subtraction of one signal from another.

2.4 Non-Linear Acoustic Echo Cancellation

The nonlinearities produced by a miniature speaker such as in a cellular handset and accompanying amplifier can be well modeled by a memoryless non-linearity. (See F. Kuech, A. Mitnacht, W. Kellermann, “Nonlinear Acoustic Echo Cancellation Using Adaptive Orthogonalized Power Filters,” Proc. IEEE ICASSP, 2005, pp. III-105-III-108, the entirety of which is incorporated by reference). By approximating such a non-linearity by a Taylor expansion, a non-linear acoustic echo canceller based on power filters can be deduced. This is generally represented by system 500 of FIG. 5.

This structure is linear in the filters h₁(k),h₂(k), . . . ,h_(M)(k) and by transforming the linear part of the structure to the frequency domain, system 600 shown in FIG. 6 is obtained. System 600 may be implemented, for example, in an audio communication system or device.

As shown in FIG. 6, system 600 is operable to receive a far-end speech signal x(n). Far-end speech signal x(n) is converted from digital to analog form by a D/A converter 602, amplified by an amplifier 604, and played back by a loudspeaker 606. As further shown in FIG. 6, a microphone 608 is operable to pick up the speech of a near-end speaker, represented as s(t), as well as an echo of the far-end speech being played back by loudspeaker 606, shown as r(t). The acoustic echo signal is subject to the acoustic environment and, as an example, is affected by the room impulse response. The signal captured by microphone 608 is passed to an A/D converter 610, which converts it from analog to digital form. The output of A/D converter 610 is a microphone signal d(n), which is the sum of a near-end speech signal s(n) plus an acoustic echo signal r(n). Microphone signal d(n) is passed to an FFT component 612 that operates to produce a frequency domain representation of microphone signal d(n), which is shown as D(f). D(f) is the sum of a frequency domain representation of near-end speech signal s(n), which is shown as S(f), and a frequency domain representation of acoustic echo signal r(n), which is shown as R(f).

As also shown in FIG. 6, far-end speech signal x(n) is also passed to a series of preprocessors 614 ₁-614 _(M), each of which raises the samples of x(n) to a particular power (e.g., preprocessor 614 ₁ raises the samples of x(n) to the power of 1, preprocessor 614 ₂ raises the samples of x(n) to the power of 2, and preprocessor 614 _(M) raises the samples of x(n) to the power of M), thereby generating a corresponding series of time domain signals x(n)-x^(M)(n). Each of these signals is passed to a corresponding one of FFT component 616 ₁-616 _(M), which operates to generate a frequency domain representation thereof. The frequency domain signals output by FFT components 616 ₁-616 _(M) are denoted X₁(f)-X_(M)(f). Each of these frequency domain signals is passed to a corresponding one of filters 618 ₁-618 _(M), which operates to filter the signal in the frequency domain in accordance with a corresponding one of acoustic echo cancellation power filters H₁(f) through H_(M)(f). The outputs of filters 618 ₁ through 618 _(M) are summed by combiners 620 ₁ through 620 _(M-1), thereby producing an estimated acoustic echo signal in the frequency domain, {circumflex over (R)}(f). A combiner 622 subtracts {circumflex over (R)}(f) from D(f), thereby producing an estimated near-end speech signal in the frequency domain, Ŝ(f). Ŝ(f) is then passed to an IFFT component 624 that operates to produce a time domain representation of Ŝ(f), which is shown as ŝ(n). Estimated near-end speech signal ŝ(n) may then be transmitted to another node in an audio communication system, such as a far-end audio communication system or device.

The objective of suppressing R(f) in D(f) based on X₁(f), X₂(f), . . . , X_(M)(f) can be achieved by minimizing the output power of the acoustic echo canceller:

$\begin{matrix} \begin{matrix} {E_{\hat{S}} = {E\left\{ {{\hat{s}}^{2}(n)} \right\}}} \\ {\approx {\sum\limits_{n}{{\hat{s}}^{2}(n)}}} \\ {= {\sum\limits_{m}{\sum\limits_{f}{{\hat{S}\left( {m,f} \right)} \cdot {{\hat{S}}^{*}\left( {m,f} \right)}}}}} \end{matrix} & \left( {{Eq}.\mspace{14mu} 18} \right) \end{matrix}$

where n is the discrete time index, m is the frame index for the DFTs, and f is the frequency index. The output is expanded as

$\begin{matrix} \begin{matrix} {{\hat{S}\left( {m,f} \right)} = {{D\left( {m,f} \right)} - {\hat{R}\left( {m,f} \right)}}} \\ {= {{D\left( {m,f} \right)} - {\sum\limits_{l = 1}^{M}{{H_{l}(f)} \cdot {X_{l}\left( {m,f} \right)}}}}} \end{matrix} & \left( {{Eq}.\mspace{14mu} 19} \right) \end{matrix}$

Allowing the AEC taps, H_(l)(f), to be complex prevents taking the derivative with respect to the coefficients due to the complex conjugate (of Ŝ(m, f)) not being differentiable. The complex conjugate does not satisfy the Cauchy-Riemann equations. However, since the cost function of Eq. 18 is real, the gradient can be calculated as

$\begin{matrix} {{{\nabla\left( E_{\hat{S}} \right)} = {\frac{\partial E_{\hat{S}}}{{\partial{Re}}\left\{ {H_{l}(f)} \right\}} + {j\frac{\partial E_{\hat{S}}}{{\partial{Im}}\left\{ {H_{l}(f)} \right\}}}}},{l = 1},2,{\ldots \mspace{14mu} M}} & \left( {{Eq}.\mspace{14mu} 20} \right) \end{matrix}$

(see S. Haykin, “Adaptive Filter Theory,” Prentice Hall, 2^(nd) edition, 1991, which is incorporated by reference herein). Hence, the gradient will be with respect to M complex taps for every frequency bin and result in a system of equations to solve for the complex AEC taps of every frequency bin. The gradient with respect to a particular complex tap, H_(k)(f), is expanded as

$\begin{matrix} \begin{matrix} {{\nabla_{H_{k}{(f)}}\left( E_{\hat{S}} \right)} = {\frac{\partial E_{\hat{S}}}{{\partial{Re}}\left\{ {H_{k}(f)} \right\}} + {j\frac{\partial E_{\hat{S}}}{{\partial{Im}}\left\{ {H_{k}(f)} \right\}}}}} \\ {= {{\sum\limits_{m}{{{\hat{S}}^{*}\left( {m,f} \right)}\frac{\partial{\hat{S}\left( {m,f} \right)}}{{\partial{Re}}\left\{ {H_{k}(f)} \right\}}}} + {{\hat{S}\left( {m,f} \right)}\frac{\partial{{\hat{S}}^{*}\left( {m,f} \right)}}{{\partial{Re}}\left\{ {H_{k}(f)} \right\}}} +}} \\ {{{j{\sum\limits_{m}{{{\hat{S}}^{*}\left( {m,f} \right)}\frac{\partial{\hat{S}\left( {m,f} \right)}}{{\partial{Im}}\left\{ {H_{k}(f)} \right\}}}}} + {{\hat{S}\left( {m,f} \right)}\frac{\partial{{\hat{S}}^{*}\left( {m,f} \right)}}{{\partial{Im}}\left\{ {H_{k}(f)} \right\}}}}} \\ {= {{\sum\limits_{m}{{- {{\hat{S}}^{*}\left( {m,f} \right)}}{X_{k}\left( {m,f} \right)}}} - {{\hat{S}\left( {m,f} \right)}{X_{k}^{*}\left( {m,f} \right)}} +}} \\ {{{j{\sum\limits_{m}{{- {{\hat{S}}^{*}\left( {m,f} \right)}}j\; {X_{k}\left( {m,f} \right)}}}} - {{\hat{S}\left( {m,f} \right)}j\; {X_{k}^{*}\left( {m,f} \right)}}}} \\ {= {{- 2}{\sum\limits_{m}{{\hat{S}\left( {m,f} \right)}{X_{k}^{*}\left( {m,f} \right)}}}}} \\ {= {{{- 2}{\sum\limits_{m}\left( {{D\left( {m,f} \right)} - {\overset{M}{\sum\limits_{l = 1}}{{H_{l}(f)}{X_{l}\left( {m,f} \right)}}}} \right)}} - {X_{k}^{*}\left( {m,f} \right)}}} \\ {= {{2{\overset{M}{\sum\limits_{l = 1}}{{H_{l}(f)}\left( {\sum\limits_{m}{{X_{l}\left( {m,f} \right)}{X_{k}^{*}\left( {m,f} \right)}}} \right)}}} -}} \\ {{2{\sum\limits_{m}{D\left( {\sum\limits_{m}{{D\left( {m,f} \right)}{X_{k}^{*}\left( {m,f} \right)}}} \right)}}}} \\ {= 0} \end{matrix} & \left( {{Eq}.\mspace{14mu} 21} \right) \end{matrix}$

The set of M equations (for k=1, 2, . . . M) of Eq. 21 provides a matrix equation for every frequency bin f to solve for H_(k)(f) k=1, 2, . . . , M:

$\begin{matrix} {{\begin{bmatrix} {\sum\limits_{m}{{X_{1}\left( {m,f} \right)}{X_{1}^{*}\left( {m,f} \right)}}} & {\sum\limits_{m}{{X_{2}\left( {m,f} \right)}{X_{1}^{*}\left( {m,f} \right)}}} & \ldots & {\sum\limits_{m}{{X_{M}\left( {m,f} \right)}{X_{1}^{*}\left( {m,f} \right)}}} \\ {\sum\limits_{m}{{X_{1}\left( {m,f} \right)}{X_{2}^{*}\left( {m,f} \right)}}} & {\sum\limits_{m}{{X_{2}\left( {m,f} \right)}{X_{2}^{*}\left( {m,f} \right)}}} & \ldots & {\sum\limits_{m}{{X_{M}\left( {m,f} \right)}{X_{2}^{*}\left( {m,f} \right)}}} \\ \vdots & \vdots & \ddots & \vdots \\ {\sum\limits_{m}{{X_{1}\left( {m,f} \right)}{X_{M}^{*}\left( {m,f} \right)}}} & {\sum\limits_{m}{{X_{2}\left( {m,f} \right)}{X_{M}^{*}\left( {m,f} \right)}}} & \ldots & {\sum\limits_{m}{{X_{M}\left( {m,f} \right)}{X_{M}^{*}\left( {m,f} \right)}}} \end{bmatrix}\begin{bmatrix} {H_{1}(f)} \\ {H_{2}(f)} \\ \vdots \\ {H_{M}(f)} \end{bmatrix}} = {\quad\begin{bmatrix} {\sum\limits_{m}{{D\left( {m,f} \right)}{X_{1}^{*}\left( {m,f} \right)}}} \\ {\sum\limits_{m}{{D\left( {m,f} \right)}{X_{2}^{*}\left( {m,f} \right)}}} \\ \vdots \\ {\sum\limits_{m}{{D\left( {m,f} \right)}{X_{M}^{*}\left( {m,f} \right)}}} \end{bmatrix}}} & \left( {{Eq}.\mspace{14mu} 22} \right) \end{matrix}$

This solution can be written as

$\begin{matrix} {{{{{\underset{\_}{\underset{\_}{R}}}_{X}(f)} \cdot {\underset{\_}{H}(f)}} = {{\underset{\_}{r}}_{D,X^{*}}(f)}}{where}} & \left( {{Eq}.\mspace{14mu} 23} \right) \\ {{{\underset{\_}{\underset{\_}{R}}}_{X}(f)} = {\sum\limits_{m}{{{\underset{\_}{X}}^{*}\left( {m,f} \right)} \cdot {\underset{\_}{X}\left( {m,f} \right)}^{T}}}} & \left( {{Eq}.\mspace{14mu} 24} \right) \\ {{{\underset{\_}{r}}_{D,X^{*}}(f)} = {\sum\limits_{m}{{D\left( {m,f} \right)} \cdot {{\underset{\_}{X}}^{*}\left( {m,f} \right)}}}} & \left( {{Eq}.\mspace{14mu} 25} \right) \\ {{{\underset{\_}{X}\left( {m,f} \right)} = \begin{bmatrix} {X_{1}\left( {m,f} \right)} \\ {X_{2}\left( {m,f} \right)} \\ \vdots \\ {X_{M}\left( {m,f} \right)} \end{bmatrix}},{{\underset{\_}{H}(f)} = \begin{bmatrix} {H_{1}(f)} \\ {H_{2}(f)} \\ \vdots \\ {H_{M}(f)} \end{bmatrix}}} & \left( {{Eq}.\mspace{14mu} 26} \right) \end{matrix}$

and superscript “T” denotes non-conjugate transpose. The solution per frequency bin to the AEC taps on the outputs from the blocking matrices is given by

H (f)=( R _(X)(f))⁻¹ ·r _(D,X*)(f)  (Eq. 27)

This appears to require a matrix inversion of an order equivalent to the number of power filters. Accordingly, for a linear AEC it becomes a simple division. Although it requires a matrix inversion in general, in most practical applications this is not needed. Up to order 4 (power 4) closed-form solutions can be derived to solve Eq. 23. For the sake of completeness, mathematical details for deriving such solutions are provided in FIGS. 17-20. It should be noted that the correlation matrix R _(X)(f) is Hermitian (although not Toeplitz in general).

2.5 Practical Non-Linear Acoustic Echo Cancellation

The systems for performing non-linear acoustic echo cancellation described above in Section 2.4 quickly become impractical as the number of powers increases. Experiments showed a notable increase in Echo Return Loss Enhancement (ERLE) with the joint set of powers from 2 through 12. This is, however, impractical to implement. This section focuses on a practical alternative for performing non-linear acoustic echo cancellation. The fundamental structure is represented by system 700 of FIG. 7. As will be discussed below, system 700 utilizes a non-linear preprocessing function to generate an echo reference signal containing non-linear products for a second-stage AEC that operates on the output of a linear AEC. System 700 may be implemented, for example, in an audio communication system or device.

Although in the following the linear AEC and the second-stage AEC are implemented using closed form solutions, it is noted that each of these components may also be implemented using traditional adaptive solutions as well. Furthermore, although in the following the linear AEC and the second-stage AEC are described as being frequency domain acoustic echo cancellers, it is noted that the linear AEC and/or the second-stage AEC may be implemented as acoustic echo cancellers that operate in the time domain as well.

As shown in FIG. 7, system 700 is operable to receive a far-end speech signal x(n). Far-end speech signal x(n) is converted from digital to analog form by a D/A converter 702, amplified by an amplifier 704, and played back by a loudspeaker 706. As further shown in FIG. 7, a microphone 708 is operable to pick up the speech of a near-end speaker, represented as s(t), as well as an echo of the far-end speech being played back by loudspeaker 706, shown as r(t). The acoustic echo signal is subject to the acoustic environment and, as an example, is affected by the room impulse response. The signal captured by microphone 708 is passed to an A/D converter 710, which converts it from analog to digital form. The output of A/D converter 710 is a microphone signal that is passed to an FFT component 712. FFT component 712 operates to generate a frequency domain representation of the microphone signal. The frequency domain representation of the microphone signal is provided as an input to a first frequency domain acoustic echo canceller (FDAEC) 716.

As also shown in FIG. 7, far-end speech signal x(n) is also passed to an FFT component 714 that operates to produce a frequency domain representation thereof. This signal is provided as a further input to first FDAEC 716. First FDAEC 716 utilizes the frequency domain representation of x(n) as a reference signal for obtaining an estimated linear acoustic echo signal. First FDAEC 716 subtracts the estimated linear acoustic echo signal from the microphone signal in the frequency domain, thereby generating a first estimated near-end speech signal. First FDAEC 716 then outputs the first estimated near-end speech signal, which is received as an input by a second FDAEC 722.

First FDAEC 716 may comprise, for example, an AEC that implements a closed-form single-tap frequency domain solution such as that described above in Section 2.1.1 or an AEC that implements a hybrid closed-form frequency domain solution such as that described above in Section 2.1.2. However, these are examples only are not intended to be limiting.

As further shown in FIG. 7, far-end speech signal x(n) is also passed to a preprocessor 718 that applies a preprocessing function f _(b) (•) thereto, thereby producing a non-linear acoustic echo reference signal. Preprocessing function f _(b) (•) is responsible for modeling the non-linear couplings present in the echo path such that the non-linear acoustic echo reference signal contains similar non-linearities to those present in the output signal produced by first FDAEC 716. The non-linear acoustic echo reference signal output by preprocessor 718 is passed to an FFT component 720, which converts that signal from the time domain to the frequency domain. The frequency domain representation of the non-linear acoustic echo reference signal is passed to second FDAEC 722.

Second FDAEC 722 utilizes the frequency domain representation of the non-linear acoustic echo reference signal to obtain an estimated non-linear acoustic echo signal. Second FDAEC 722 subtracts the estimated non-linear acoustic echo signal from the first estimated near-end speech signal output by first FDAEC 716 in the frequency domain, thereby generating a second estimated near-end speech signal. Second FDAEC 722 then outputs the second estimated near-end speech signal, which is passed to an IFFT component 724. IFFT component 724 converts the second estimated near-end speech signal from the frequency domain to the time domain. The time domain version of this signal, shown as ŝ(n), may then be transmitted to another node in an audio communication system, such as a far-end audio communication system or device.

The non-linear couplings present in the echo path may be due to amplifier 704 and loudspeaker 706. In certain implementations, such non-linearities may be approximated by a memoryless limiter. FIG. 8 is a block diagram of a system 800 in which the preprocessor 718 of system 700 has been replaced by a memoryless limiter 802.

Like first FDAEC 716, second FDAEC 722 may comprise an AEC that implements a closed-form single-tap frequency domain solution such as that described above in Section 2.1.1 or an AEC that implements a hybrid closed-form frequency domain solution such as that described above in Section 2.1.2. However, these are examples only are not intended to be limiting.

FIG. 9 is a block diagram of an example system 900 in which first FDAEC 716 and second FDAEC 722 are each implemented using a hybrid closed-form frequency domain solution such as that described above in Section 2.1.2. As was the case for system 300 of FIG. 3, the notion of time has been introduced to all the spectra shown in FIG. 9 by the variable m which is the FFT frame index. As was also the case for system 300 of FIG. 3, the unit of the delay lines shown in system 900 is one frame—in other words, z⁻¹ means one frame or FFT sample delay.

In accordance with system 900 of FIG. 9, first FDAEC 716 receives a frequency domain representation of far-end speech signal x(n) for FFT frame m, denoted X(m, f), from FFT component 714. Each frequency sub-band or component of X(m, f) is passed through a corresponding time direction filter having a set of acoustic echo cancellation taps H₀(f) through H_(K)(f) (collectively denoted taps 904 ₀ through 904 _(K) in FIG. 9). A delay line comprising a plurality of delay elements 902 ₀ through 902 _(K-1) operates to produce the necessary time-delayed frequency components for each time direction filter. The outputs of taps 904 ₀ through 904 _(K) are summed by combiners 906 ₀ through 906 _(K-1) for each time direction filter, thereby producing an estimated linear acoustic echo signal in the frequency domain for FFT frame m, {circumflex over (R)}(m, f). A combiner 908 subtracts {circumflex over (R)}(m, f) from the frequency domain representation of the microphone signal output by FFT component 712, thereby producing a first estimated near-end speech signal in the frequency domain for FFT frame m, denoted Ŝ_(Lin)(m, f). Ŝ_(Lin)(m, f) is then passed as an input to second FDAEC 722.

As further shown in FIG. 9, second FDAEC 722 receives a frequency domain representation of a non-linear acoustic echo reference signal for FFT frame m, denoted X_(NL)(m, f), from FFT component 720. Each frequency sub-band component of X_(NL)(m, f) is passed through a corresponding time direction filter having a set of acoustic echo cancellation taps G₀(f) through G_(L)(f) (collectively denoted taps 914 ₀ through 914 _(L) in FIG. 9). A delay line comprising a plurality of delay elements 912 ₀ through 912 _(L-1) operates to produce the necessary time-delayed frequency components for each time direction filter. The outputs of taps 914 ₀ through 914 _(L) are summed by combiners 916 ₀ through 916 _(L-1) for each time direction filter, thereby producing an estimated non-linear acoustic echo signal in the frequency domain for FFT frame m, {circumflex over (R)}_(NL)(m, f). A combiner 918 subtracts {circumflex over (R)}_(NL)(m, f) from Ŝ_(Lin)(m, f), thereby producing a second estimated near-end speech signal in the frequency domain for FFT frame m, Ŝ(m, f). Ŝ(m, f) is then passed to IFFT component 724 that operates to produce a time domain representation of Ŝ(m, f), which is ŝ(n).

The time direction filter order K for first FDAEC 716 and/or the time direction filter order L for second FDAEC 722 can be frequency dependent so that the frequency resolution is not increased to the same extent in all frequency ranges.

The solution for the taps for G₀(f) through G_(L)(f) can be easily written from Section 2.1.2 as

$\begin{matrix} {{{{\underset{\_}{G}(f)} = {{\left( {{\underset{\_}{\underset{\_}{R}}}_{X_{NL}}(f)} \right)^{- 1} \cdot {\underset{\_}{r}}_{S_{Lin},X_{NL}}}*(f)}},{where}}{{{{\underset{\_}{\underset{\_}{R}}}_{X_{NL}}(f)} = {\sum\limits_{m}{{{\underset{\_}{X}}_{NL}^{*}\left( {m,f} \right)} \cdot {{\underset{\_}{X}}_{NL}\left( {m,f} \right)}^{T}}}},}} & \left( {{Eq}.\mspace{14mu} 28} \right) \\ {{{{\underset{\_}{r}}_{S_{Lin},X_{NL}^{*}}(f)} = {\sum\limits_{m}{{{\hat{S}}_{Lin}\left( {m,f} \right)} \cdot {{\underset{\_}{X}}_{NL}^{*}\left( {m,f} \right)}}}}{and}} & \left( {{Eq}.\mspace{14mu} 29} \right) \\ {{{{\underset{\_}{X}}_{NL}\left( {m,f} \right)} = \begin{bmatrix} {X_{NL}\left( {m,f} \right)} \\ {X_{NL}\left( {{m - 1},f} \right)} \\ \vdots \\ {X_{NL}\left( {{m - L},f} \right)} \end{bmatrix}},{{\underset{\_}{G}(f)} = {\begin{bmatrix} {G_{0}(f)} \\ {G_{1}(f)} \\ \vdots \\ {G_{L}(f)} \end{bmatrix}.}}} & \left( {{Eq}.\mspace{14mu} 30} \right) \end{matrix}$

It is also straightforward to write the solution for joint optimization of H(f) and G(f), but it will come at increased complexity compared to a sequential approach. Additionally, in practice it was found that using the coherence between Ŝ_(Lin)(m, f) and {circumflex over (X)}_(NL)(m, f) to control adaptive estimation of R _(X) _(NL) (f) and r _(S) _(Lin) _(,X) _(NL) _(*)(f) works well. This further motivates a sequential approach.

FIG. 10 depicts a graph 1000 that represents performance evaluations for a cellular handset operating in speakerphone mode. The graph illustrates that a system utilizing a 2^(nd) order second-stage non-linear FDAEC provides an improvement in ERLE by 6 decibels (dB) to 7 dB as compared to a system that utilizes only a single linear FDAEC. The simulations performed to generate this data used a fixed saturation at 18 dB below maximum amplitude.

2.5.1 Adaptive Non-Linear Preprocessing Function

The simulation results shown in FIG. 10 are based on a fixed non-linear preprocessing function in the form of a limiter with fixed saturation threshold. In practice, it is likely advantageous to make parameters of the preprocessing function adaptive. This section derives a method to adaptively update the parameters b of the preprocessing function f _(b) (•). For the simple memoryless limiter this would be the saturation threshold.

FIG. 11 is a block diagram of a system 1100 that is similar to system 900 of FIG. 9, except that memoryless limiter 802 has been replaced by a preprocessor 1102 that applies the more generic preprocessing function f _(b) (•).

From system 1100 of FIG. 11, it is evident that the parameters of the preprocessing function (in the time domain) affect all frequency bins, and hence minimization of a cost function with respect to the parameters will not be independent for each frequency bin as seen earlier when deriving solutions for the taps G(f). Consequently, it would become overly complicated to derive a solution jointly optimizing the taps G(f) and the parameters b. Instead an adaptive algorithm can be derived for estimating the parameters b. For that purpose the gradient of the cost function with respect to the parameters is derived.

2.5.1.1 Gradient with Respect to Preprocessing Function for Non-Hybrid Non-Linear FDAEC

Initially, for simplicity the gradient with respect to the parameters of the preprocessing function is carried out assuming a non-hybrid non-linear FDAEC. Similar to previous sections the objective is to minimize the output power of the acoustic echo canceller:

$\begin{matrix} \begin{matrix} {E_{\hat{S}} = {E\left\{ {{\hat{s}}^{2}(n)} \right\}}} \\ {\approx {\sum\limits_{n}{{\hat{s}}^{2}(n)}}} \\ {{= {\sum\limits_{m}{\sum\limits_{f}{{\hat{S}\left( {m,f} \right)} \cdot {{\hat{S}}^{*}\left( {m,f} \right)}}}}},} \end{matrix} & \left( {{Eq}.\mspace{14mu} 31} \right) \end{matrix}$

where n is the discrete time index, m is the frame index for the DFTs, and f is the frequency index. The output is expanded as

$\begin{matrix} \begin{matrix} {{\hat{S}\left( {m,f} \right)} = {{{\hat{S}}_{Lin}\left( {m,f} \right)} - {{\hat{R}}_{NL}\left( {m,f} \right)}}} \\ {= {{{\hat{S}}_{Lin}\left( {m,f} \right)} - {{G_{0}(f)} \cdot {X_{NL}\left( {m,f} \right)}}}} \\ {{= {{{\hat{S}}_{Lin}\left( {m,f} \right)} - {{G_{0}(f)} \cdot {\overset{N - 1}{\sum\limits_{n = 0}}{{w(n)} \cdot {f_{\underset{\_}{b}}\left( {x\left( {m,n} \right)} \right)} \cdot ^{{- j}\; 2\pi \; {{fn}/N}}}}}}},} \end{matrix} & \left( {{Eq}.\mspace{14mu} 32} \right) \end{matrix}$

where x(m, n), n=0, . . . , N−1 is the current frame of the input signal, weighted by the analysis window, w(n), n=0, . . . , N−1.

The gradient can be calculated as

$\begin{matrix} \begin{matrix} {{\nabla_{\underset{\_}{b}}\left( E_{\hat{S}} \right)} = \frac{\partial E_{\hat{S}}}{\partial\underset{\_}{b}}} \\ {= {{\sum\limits_{m}{\sum\limits_{f}{{{\hat{S}}^{*}\left( {m,f} \right)}\frac{\partial{\hat{S}\left( {m,f} \right)}}{\partial\underset{\_}{b}}}}} + {{\hat{S}\left( {m,f} \right)}\frac{\partial{{\hat{S}}^{*}\left( {m,f} \right)}}{\partial\underset{\_}{b}}}}} \\ {= {\underset{m}{- \sum}{\sum\limits_{f}\begin{pmatrix} {{{\hat{S}}_{Lin}^{*}\left( {m,f} \right)} - {{G_{0}^{*}(f)} \cdot {\overset{N - 1}{\sum\limits_{n = 0}}{{w(n)} \cdot}}}} \\ {{f_{\underset{\_}{b}}\left( {x\left( {m,n} \right)} \right)} \cdot ^{j\; 2\pi \; {{fn}/N}}} \end{pmatrix}}}} \\ {{{G_{0}(f)} \cdot {\overset{N - 1}{\sum\limits_{n = 0}}{{w(n)} \cdot \frac{\partial{f_{\underset{\_}{b}}\left( {x\left( {m,n} \right)} \right)}}{\partial\underset{\_}{b}} \cdot ^{{- j}\; 2\pi \; {{fn}/N}}}}}} \\ {{- {\sum\limits_{m}{\sum\limits_{f}\begin{pmatrix} {{{\hat{S}}_{Lin}\left( {m,f} \right)} - {{G_{0}(f)} \cdot {\overset{N - 1}{\sum\limits_{n = 0}}{{w(n)} \cdot}}}} \\ {{f_{\underset{\_}{b}}\left( {x\left( {m,n} \right)} \right)} \cdot ^{{- j}\; 2\pi \; {{fn}/N}}} \end{pmatrix}}}}} \\ {{{G_{0}^{*}(f)} \cdot {\overset{N - 1}{\sum\limits_{n = 0}}{{w(n)} \cdot \frac{\partial{f_{\underset{\_}{b}}\left( {x\left( {m,n} \right)} \right)}}{\partial\underset{\_}{b}} \cdot {^{j\; 2\pi \; {{fn}/N}}.}}}}} \end{matrix} & \left( {{Eq}.\mspace{14mu} 33} \right) \end{matrix}$

With a non-linear preprocessing function it will be difficult to derive a closed form solution for b by setting the gradient to zero. However, the numerical value of the gradient can be calculated and used in a steepest gradient descent type algorithm. The numerical value of the gradient at frame m is reduced to

$\begin{matrix} \begin{matrix} {{\nabla_{\underset{\_}{b}}\left( {E_{\hat{S}}(m)} \right)} = {- {\sum\limits_{f}{{{\hat{S}}^{*}\left( {m,f} \right)}{{G_{0}(f)} \cdot {\sum\limits_{n = 0}^{N - 1}{{w(n)} \cdot}}}}}}} \\ {{{\frac{\partial{f_{\underset{\_}{b}}\left( {x\left( {m,n} \right)} \right)}}{\partial\underset{\_}{b}} \cdot ^{{- {j2\pi}}\; {{fn}/N}}} +}} \\ {\begin{pmatrix} {{{\hat{S}}^{*}\left( {m,f} \right)}{{G_{0}(f)} \cdot {\sum\limits_{n = 0}^{N - 1}{{w(n)} \cdot}}}} \\ {\frac{\partial{f_{\underset{\_}{b}}\left( {x\left( {m,n} \right)} \right)}}{\partial\underset{\_}{b}} \cdot ^{{- {j2\pi}}\; {{fn}/N}}} \end{pmatrix}^{*}} \\ {= {{- {\sum\limits_{f}{{{\hat{S}}^{*}\left( {m,f} \right)}{{G_{0}(f)} \cdot {DFT}}\left\{ {\frac{\partial{f_{\underset{\_}{b}}\left( {x\left( {m,n} \right)} \right)}}{\partial\underset{\_}{b}},f} \right\}}}} +}} \\ {\left( {{{\hat{S}}^{*}\left( {m,f} \right)}{{G_{0}(f)} \cdot {DFT}}\left\{ {\frac{\partial{f_{\underset{\_}{b}}\left( {x\left( {m,n} \right)} \right)}}{\partial\underset{\_}{b}},f} \right\}} \right)^{*}} \\ {{= {{- 2}{\sum\limits_{f}{{Re}\left\{ {{{\hat{S}}^{*}\left( {m,f} \right)}{{G_{0}(f)} \cdot {DFT}}\left\{ {\frac{\partial{f_{\underset{\_}{b}}\left( {x\left( {m,n} \right)} \right)}}{\partial\underset{\_}{b}},f} \right\}} \right\}}}}},} \end{matrix} & \left( {{Eq}.\mspace{14mu} 34} \right) \end{matrix}$

It requires the calculation of the DFT of the derivatives of the preprocessing function with respect to b at the input samples of the current frame m. The parameters of the preprocessing function can be adaptively tracked/estimated by a steepest descent algorithm

$\begin{matrix} {{\underset{\_}{b}\left( {m + 1} \right)} = {{\underset{\_}{b}(m)} - {\frac{1}{2}{\mu \cdot {\nabla_{\underset{\_}{b}}\left( {E_{\hat{S}}(m)} \right)}}}}} & \left( {{Eq}.\mspace{14mu} 35} \right) \end{matrix}$

(See S. Haykin, “Adaptive Filter Theory,” Prentice Hall, 2^(nd) edition, 1991, which is incorporated by reference herein).

2.5.1.2 Gradient with Respect to Preprocessing Function for Hybrid Non-Linear FDAEC

With a hybrid non-linear FDAEC the output becomes

$\begin{matrix} \begin{matrix} {{\hat{S}\left( {m,f} \right)} = {{{\hat{S}}_{Lin}\left( {m,f} \right)} - {{\hat{R}}_{NL}\left( {m,f} \right)}}} \\ {= {{{\hat{S}}_{Lin}\left( {m,f} \right)} - {{G_{0}(f)} \cdot {X_{NL}\left( {m,f} \right)}}}} \\ {= {{{\hat{S}}_{Lin}\left( {m,f} \right)} - {\sum\limits_{l = 0}^{L}{{G_{l}(f)} \cdot {\sum\limits_{n = 0}^{N - 1}{{w(n)} \cdot}}}}}} \\ {{{{f_{\underset{\_}{b}}\left( {x\left( {{m - l},n} \right)} \right)} \cdot ^{{- {j2\pi}}\; {{fn}/N}}},}} \end{matrix} & \left( {{Eq}.\mspace{14mu} 36} \right) \end{matrix}$

where L is the hybrid order. The numerical value of the gradient at frame m is

$\begin{matrix} \begin{matrix} {{\nabla_{\underset{\_}{b}}\left( {E_{\hat{S}}(m)} \right)} = {- {\sum\limits_{f}{{{\hat{S}}^{*}\left( {m,f} \right)}{\overset{L}{\sum\limits_{l = 0}}{{G_{l}(f)} \cdot {\sum\limits_{n = 0}^{N - 1}{{w(n)} \cdot}}}}}}}} \\ {{{\frac{\partial{f_{\underset{\_}{b}}\left( {x\left( {{m - l},n} \right)} \right)}}{\partial\underset{\_}{b}} \cdot ^{{- {j2\pi}}\; {{fn}/N}}} +}} \\ {\begin{pmatrix} {{{\hat{S}}^{*}\left( {m,f} \right)}{\overset{L}{\sum\limits_{l = 0}}{{G_{l}(f)} \cdot {\sum\limits_{n = 0}^{N - 1}{{w(n)} \cdot}}}}} \\ {\frac{\partial{f_{\underset{\_}{b}}\left( {x\left( {{m - l},n} \right)} \right)}}{\partial\underset{\_}{b}} \cdot ^{{- {j2\pi}}\; {{fn}/N}}} \end{pmatrix}^{*}} \\ {= {- {\sum\limits_{f}{{{\hat{S}}^{*}\left( {m,f} \right)}{\overset{L}{\sum\limits_{l = 0}}{{G_{l}(f)} \cdot}}}}}} \\ {{{{DFT}\left\{ {\frac{\partial{f_{\underset{\_}{b}}\left( {x\left( {{m - l},n} \right)} \right)}}{\partial\underset{\_}{b}},f} \right\}} +}} \\ {\left( {{{\hat{S}}^{*}\left( {m,f} \right)}{\overset{L}{\sum\limits_{l = 0}}{{{G_{l}(f)} \cdot {DFT}}\left\{ {\frac{\partial{f_{\underset{\_}{b}}\left( {x\left( {{m - l},n} \right)} \right)}}{\partial\underset{\_}{b}},f} \right\}}}} \right)^{*}} \\ {{= {{- 2}{\sum\limits_{f}{{Re}\begin{Bmatrix} {{{\hat{S}}^{*}\left( {m,f} \right)}{\overset{L}{\sum\limits_{l = 0}}{{G_{l}(f)} \cdot}}} \\ {{DFT}\left\{ {\frac{\partial{f_{\underset{\_}{b}}\left( {x\left( {{m - l},n} \right)} \right)}}{\partial\underset{\_}{b}},f} \right\}} \end{Bmatrix}}}}},} \end{matrix} & \left( {{Eq}.\mspace{14mu} 37} \right) \end{matrix}$

Hence, to accommodate the hybrid feature the DFT of the derivative of the preprocessing function needs to be buffered.

2.5.1.3 Gradient with Memoryless Limiter

For memoryless limiter 802 shown in FIG. 9 the preprocessing function is

$\begin{matrix} {{f_{T}(x)} = \left\{ \begin{matrix} {- T} & {x < {- T}} \\ x & {{- T} \leq x \leq T} \\ T & {{x > T},} \end{matrix} \right.} & \left( {{Eq}.\mspace{14mu} 38} \right) \end{matrix}$

and the derivative with respect to T is

$\begin{matrix} {\frac{\partial{f_{T}(x)}}{\partial T} = \left\{ \begin{matrix} {- 1} & {x < {- T}} \\ 0 & {{- T} \leq x \leq T} \\ 1 & {x > {T.}} \end{matrix} \right.} & \left( {{Eq}.\mspace{14mu} 39} \right) \end{matrix}$

Combining Eqs. 37 and 39 provides the numerical gradient for the simple memoryless limiter at frame m:

$\begin{matrix} {{\nabla_{T}\left( {E_{\hat{S}}(m)} \right)} = {{- 2}{\sum\limits_{f}{{Re}{\left\{ {{{\hat{S}}^{*}\left( {m,f} \right)}{\sum\limits_{l = 0}^{L}{{{G_{l}(f)} \cdot D}\; F\; T\left\{ {\frac{\partial{f_{T}\left( {x\left( {{m - l},n} \right)} \right)}}{\partial T},f} \right\}}}} \right\}.}}}}} & \left( {{Eq}.\mspace{14mu} 40} \right) \end{matrix}$

From Eq. 39 it is evident that if all signal samples are within the saturation threshold of the limiter, i.e. in [−T;T], then the gradient will become zero, and effectively the adaptation will be stuck. To address this issue a slow decay of the saturation threshold can be incorporated for frames where the derivatives are all zero, and hence the complete update rule becomes

$\begin{matrix} {{T\left( {m + 1} \right)} = \left\{ \begin{matrix} {\alpha \cdot {T(m)}} & {{x\left( {m,n} \right)} \in {\left\lbrack {{- {T(m)}};{T(m)}} \right\rbrack {\forall n}}} \\ {{T(m)} - {\frac{1}{2}{\mu \cdot {\nabla_{T}\left( {E_{\hat{S}}(m)} \right)}}}} & {{otherwise}.} \end{matrix} \right.} & \left( {{Eq}.\mspace{14mu} 41} \right) \end{matrix}$

Repeating the equivalent simulations of FIG. 10, but with the fully adaptive saturation threshold provides the performance shown in graph 1200 of FIG. 12. Additionally, the plot includes performance for both non-hybrid (1 tap, i.e. L=0) and 2^(nd) order hybrid (3 taps, i.e., L=2). The solid curves are for the fixed −18 dB saturation threshold, while the dashed curves are with the steepest descent saturation threshold according to the above. In the experiments producing the performance plots of FIG. 11, the following settings were used:

${\alpha = \frac{127}{128}},{\mu = {0.002.}}$

At high volume settings where non-linearities are typically most dominant the steepest descent method provides performance equivalent to the fixed optimal saturation threshold. Somewhat unexpectedly, it provides a significant improvement of up to 3.5 dB at low to medium volume settings. Intuitively, the fixed optimal threshold was set for high volume setting, and hence it may not be optimal for low to medium volume setting. However, it is surprising that there is that much to be gained at these lower volume settings. Perhaps there is notable non-linear coupling even at the lower volume settings.

FIG. 13 is block diagram of a system 1300 in which first FDAEC 716 is a 2^(nd) order hybrid FDAEC, second FDAEC 722 is a 0th order FDAEC, and preprocessor 718 includes a steepest descent adaptation of the preprocessing function, making it capable of cancelling non-linear coupling.

In accordance with system 1300 of FIG. 13, first FDAEC 716 receives a frequency domain representation of far-end speech signal x(n) for FFT frame m, denoted X(m, f), from FFT component 714. Each frequency sub-band or component of X(m, f) is passed through a corresponding time direction filter having a set of acoustic echo cancellation taps H₀(f) through H₂(f) (collectively denoted taps 1304 ₀ through 1304 ₂ in FIG. 13). A delay line comprising a plurality of delay elements 1302 ₀ and 1302 ₁ operates to produce the necessary time-delayed frequency components for each time direction filter. The outputs of taps 1304 ₀ through 1304 ₂ are summed by combiners 1306 ₀ and 1306 ₁ for each time direction filter, thereby producing an estimated linear acoustic echo signal in the frequency domain for FFT frame m, {circumflex over (R)}(m, f). A combiner 1308 subtracts {circumflex over (R)}(m, f) from the frequency domain representation of the microphone signal output by FFT component 712, thereby producing a first estimated near-end speech signal in the frequency domain for FFT frame m, denoted Ŝ_(Lin)(m, f). Ŝ_(Lin)(m, f) is then passed as an input to second FDAEC 722.

As further shown in FIG. 13, second FDAEC 722 receives a frequency domain representation of a non-linear acoustic echo reference signal for FFT frame m, denoted X_(NL)(m, f), from FFT component 720. X_(NL)(m, f) is passed to a filter 1322 that carries out the filtering of X_(NL)(m, f) in the frequency domain by multiplying X_(NL)(m, f) by G₀(f), thereby producing an estimated non-linear acoustic echo signal in the frequency domain for FFT frame m, {circumflex over (R)}_(NL)(m, f). A combiner 1324 subtracts {circumflex over (R)}_(NL)(m, f) from Ŝ_(Lin)(m, f), thereby producing a second estimated near-end speech signal in the frequency domain for FFT frame m, Ŝ(m, f). Ŝ(m, f) is then passed to IFFT component 724 that operates to produce a time domain representation of Ŝ(m, f), which is ŝ(n).

As also shown in FIG. 14, preprocessor 718 comprises a memoryless limiter 1312 as well as a number of other components that implement the aforementioned adaptive algorithm for estimating the saturation threshold of memoryless limiter 1312. In particular, a component 1314 operates to receive far-end speech signal x(n), the threshold of memoryless limiter L, and to generate the derivative of the far-end speech signal x(n) with respect to L,

$\frac{\partial{f_{L}\left( {x(n)} \right)}}{\partial L}.$

An FFT component 1316 converts

$\frac{\partial{f_{L}\left( {x(n)} \right)}}{\partial L}$

into the frequency domain and passes the frequency domain representation to component 1318. Component 1318 combines the frequency domain representation of

$\frac{\partial{f_{L}\left( {x(n)} \right)}}{\partial L}$

with the filter tap G₀(f) to obtain a gradient ∇_(L)(E_(Ŝ)(m)). Component 1318 passes gradient ∇_(L)(E_(Ŝ)(m)) to memoryless limiter 1312, which uses the gradient to adjust the threshold L.

2.5.1.4 Gradient with Memoryless Soft Limiter

In B. S. Nollett, D. L. Jones, “Nonlinear Echo Cancellation for Hands-free Speakerphones,” Proc. NSIP, 1997, Mackinac Island, Mich., USA, September 1997 (the entirety of which is incorporated by reference herein), a soft limiter is proposed (for a different structure) given by

$\begin{matrix} {{{f_{\alpha,T}(x)} = \frac{T \cdot x}{\sqrt[\alpha]{{T}^{\alpha} + {x}^{\alpha}}}},} & \left( {{Eq}.\mspace{14mu} 42} \right) \end{matrix}$

This can be used as the non-linear preprocessing function. Similar to the hard limiter described above it saturates the output at T. The parameter, α, controls how hard the saturation is. For α=2 it simplifies to

$\begin{matrix} {{{f_{T}(x)} = \frac{T \cdot x}{\sqrt{T^{2} + x^{2}}}},} & \left( {{Eq}.\mspace{14mu} 43} \right) \end{matrix}$

and the derivative with respect to T is

$\begin{matrix} {\frac{\partial{f_{T}(x)}}{\partial T} = {\frac{x^{3}}{\left( {T^{2} + x^{2}} \right)^{3/2}}.}} & \left( {{Eq}.\mspace{14mu} 44} \right) \end{matrix}$

The gradient can be calculated according to Eq. 40, and the update rule becomes

$\begin{matrix} {{T\left( {m + 1} \right)} = {{T(m)} - {\frac{1}{2}{\mu \cdot {{\nabla_{T}\left( {E_{\hat{S}}(m)} \right)}.}}}}} & \left( {{Eq}.\mspace{14mu} 45} \right) \end{matrix}$

It should be noted that no special treatment is necessary since there is no trap with a trivial gradient of zero as was seen for the hard limiter.

2.5.1.5 Gradient with Memoryless General Soft Limiter

In Section 2.5.1.4 the gradient and update rule for the special case (α=2) of the general non-linear preprocessing function of Eq. 42 was derived. However, to further facilitate modeling of non-linear coupling both T and α can be adaptive parameters. Diagram 1400 in FIG. 14 shows plots of non-linear preprocessing functions such as the hard limiter, the soft limiter with α=2, as well as various other values of α.

As can be seen from the plot the parameter α controls the degree of non-linearity. Making both parameters adaptive further complicates matters and requires the partial gradients with respect to both parameters to be derived. From Eq. 37:

$\begin{matrix} {{{\nabla_{T}\left( {E_{\hat{S}}(m)} \right)} = {{- 2}{\sum\limits_{f}{{Re}\left\{ {{{\hat{S}}^{*}\left( {m,f} \right)}{\sum\limits_{l = 0}^{L}{{{G_{l}(f)} \cdot D}\; F\; T\left\{ {\frac{\partial{f_{\alpha,T}\left( {x\left( {{m - l},n} \right)} \right)}}{\partial T},f} \right\}}}} \right\}}}}}{{\nabla_{\alpha}\left( {E_{\hat{S}}(m)} \right)} = {{- 2}{\sum\limits_{f}{{Re}{\left\{ {{{\hat{S}}^{*}\left( {m,f} \right)}{\sum\limits_{l = 0}^{L}{{{G_{l}(f)} \cdot D}\; F\; T\left\{ {\frac{\partial{f_{\alpha,T}\left( {x\left( {{m - l},n} \right)} \right)}}{\partial\alpha},f} \right\}}}} \right\}.}}}}}} & \left( {{Eq}.\mspace{14mu} 46} \right) \end{matrix}$

Hence, the partial derivatives of f_(α,T)(x) with respect to T and α are required. By using the quotient rule and the derivative of absolute value

$\begin{matrix} {\frac{\partial{{h(x)}}}{\partial x} = {\frac{h(x)}{{h(x)}}\frac{\partial{h(x)}}{\partial x}}} & \left( {{Eq}.\mspace{14mu} 47} \right) \end{matrix}$

the derivative with respect to T is derived

$\begin{matrix} \begin{matrix} {\frac{\partial{f_{\alpha,T}(x)}}{\partial T} = \frac{{x\left( {{T}^{\alpha} + {x}^{\alpha}} \right)}^{1/\alpha} - {{Tx}\frac{\partial}{\partial T}\left( {{T}^{\alpha} + {x}^{\alpha}} \right)^{1/\alpha}}}{\left( {{T}^{\alpha} + {x}^{\alpha}} \right)^{2/\alpha}}} \\ {= \frac{{x\left( {{T}^{\alpha} + {x}^{\alpha}} \right)}^{1/\alpha} - {{Tx}\; \alpha \frac{T}{T}{T}^{\alpha - 1}\frac{1}{\alpha}\left( {{T}^{\alpha} + {x}^{\alpha}} \right)^{{1/\alpha} - 1}}}{\left( {{T}^{\alpha} + {x}^{\alpha}} \right)^{2/\alpha}}} \\ {= \frac{{x\left( {{T}^{\alpha} + {x}^{\alpha}} \right)}^{1/\alpha} - {{xT}^{2}{T}^{\alpha - 2}\left( {{T}^{\alpha} + {x}^{\alpha}} \right)^{{1/\alpha} - 1}}}{\left( {{T}^{\alpha} + {x}^{\alpha}} \right)^{2/\alpha}}} \\ {= \frac{x\left( {{T}^{\alpha} + {x}^{\alpha} - {T^{2}{T}^{\alpha - 2}}} \right)}{\left( {{T}^{\alpha} + {x}^{\alpha}} \right)^{1 + {1/\alpha}}}} \\ {= {\frac{x{x}^{\alpha}}{\left( {{T}^{\alpha} + {x}^{\alpha}} \right)^{1 + {1/\alpha}}}.}} \end{matrix} & \left( {{Eq}.\mspace{14mu} 48} \right) \end{matrix}$

By inserting α=2 it can be seen to reduce to the special case of Eq. 44. Using the quotient rule and the generalized power rule, the derivative of the preprocessing function with respect to α is derived as

                                        (Eq.  49) $\begin{matrix} {\frac{\partial{f_{\alpha,T}(x)}}{\partial\alpha} = {{- {Tx}}\frac{\frac{\partial}{\partial\alpha}\left( {{T}^{\alpha} + {x}^{\alpha}} \right)^{1/\alpha}}{\left( {{T}^{\alpha} + {x}^{\alpha}} \right)^{2/\alpha}}}} \\ {= {{- {Tx}}\frac{{x\left( {{T}^{\alpha} + {x}^{\alpha}} \right)}^{1/\alpha}\begin{bmatrix} {{\left( {{{T}^{\alpha}{\ln \left( {T} \right)}} + {{x}^{\alpha}{\ln \left( {x} \right)}}} \right)\frac{\alpha^{- 1}}{{T}^{\alpha} + {x}^{\alpha}}} -} \\ {\alpha^{- 2}{\ln \left( {{T}^{\alpha} + {x}^{\alpha}} \right)}} \end{bmatrix}}{\left( {{T}^{\alpha} + {x}^{\alpha}} \right)^{2/\alpha}}}} \\ {= {{Tx}\frac{{\left( {{T}^{\alpha} + {x}^{\alpha}} \right){\ln \left( {{T}^{\alpha} + {x}^{\alpha}} \right)}} - {\alpha \left( {{{T}^{\alpha}{\ln \left( {T} \right)}} + {{x}^{\alpha}{\ln \left( {x} \right)}}} \right)}}{{\alpha^{2}\left( {{T}^{\alpha} + {x}^{\alpha}} \right)}^{1 + {1/\alpha}}}}} \\ {= {{Tx}\frac{{\left( {{T}^{\alpha} + {x}^{\alpha}} \right){\ln \left( {{T}^{\alpha} + {x}^{\alpha}} \right)}} - {{T}^{\alpha}{\ln \left( {T}^{\alpha} \right)}} - {{x}^{\alpha}{\ln \left( {x}^{\alpha} \right)}}}{{\alpha^{2}\left( {{T}^{\alpha} + {x}^{\alpha}} \right)}^{1 + {1/\alpha}}}}} \end{matrix}$

The update rule of the gradient descent algorithm for the two parameters of the general soft limiter is then given by

$\begin{matrix} {{{T\left( {m + 1} \right)} = {{T(m)} - {\frac{1}{2}{\mu_{T} \cdot {\nabla_{T}\left( {E_{\hat{S}}(m)} \right)}}}}}{{\alpha \left( {m + 1} \right)} = {{\alpha (m)} - {\frac{1}{2}{\mu_{\alpha} \cdot {{\nabla_{\alpha}\left( {E_{\hat{S}}(m)} \right)}.}}}}}} & \left( {{Eq}.\mspace{14mu} 50} \right) \end{matrix}$

2.6 Updating of Statistics for Non-Linear AEC

The preceding section described a two-stage structure in which a first FDAEC is used to attenuate or cancel linear acoustic echo components of a microphone signal to generate an output signal and a second FDAEC is used to attenuate or cancel non-linear acoustic echo components of the output signal generated by the first FDAEC. In accordance with one embodiment, the techniques described in Section 2.2 above are used to update the estimated signal statistics used to implement the first FDAEC. In a further embodiment, somewhat similar techniques are used to update the estimated signal statistics used to implement the second FDAEC. The techniques used to update the estimated signal statistics used to implement the second FDAEC in accordance with one example embodiment will now be described.

In accordance with the example embodiment, a rate for updating the estimated statistics necessary for implementing the second FDAEC are controlled on a frequency bin by frequency bin basis in accordance with a measure of coherence between the frequency domain representation of the signal output by the preprocessing function and the signal being output by the first FDAEC. In one embodiment, the measure of coherence for each frequency bin is determined by calculating the squared magnitude of the normalized cross-spectrum between the signal output by the preprocessing function and the signal output by the first FDAEC. However, this is only one example, and other methods for determining the measure of coherence on a frequency bin by frequency bin basis may be used.

In accordance with certain embodiments, an aggressive tracker is utilized that maps a high measure of coherence to a fast update rate for the estimated statistics and maps a low measure of coherence to a low update rate for the estimated statistics, which may include not updating at all. In an embodiment in which the statistics are estimated by calculating a running mean, the aforementioned mapping may be achieved by controlling the weight attributed to the current instantaneous statistics when calculating the mean. Thus, to achieve a slow update rate, little or no weight may be assigned to the current instantaneous statistics, but to achieve a fast update rate, more significant weight may be assigned current instantaneous statistics. For each frequency bin, the result of the application of the closed-form solution of the acoustic echo canceller is determined in accordance with the estimated statistics generated using the aggressive tracker. Furthermore, a “safety net” may be applied to each frequency bin such that if the selected result for that frequency bin has a power that is greater than that of the corresponding frequency bin of the signal output by the first FDAEC, then the selected result may be discarded and the frequency component associated with the signal output by the first FDAEC may be used instead. This can help avoid the introduction of distortion by the second FDAEC and avoid divergence.

2.7 Exemplary Methods for Performing Practical Non-Linear Acoustic Echo Cancellation

FIG. 15 depicts a flowchart 1500 of an exemplary method for performing acoustic echo cancellation using a structure such as that described above in reference to system 700 of FIG. 7. However, the method is not limited to that implementation and may be implemented using other structures as well.

The method of flowchart 1500 begins at step 1502, in which a far-end speech signal and a microphone signal are received. In example system 700 of FIG. 7, this step maybe performed by first FDAEC 716 which operates to receive the frequency domain representation of far-end speech signal x(n) generated by FFT component 714 and the frequency domain representation of the microphone signal generated by FFT component 712. Although FIG. 7 shows the far-end speech signal as a digital signal that is passed to D/A converter 702 and that is converted into the frequency domain by FFT component 714, the term “far-end speech signal” is to be broadly construed to encompass any speech signal received from a far end in an audio communication system, regardless of whether such signal is in analog or digital form, regardless of whether such signal is represented in the time domain or the frequency domain, and regardless of whether such signal has been processed after it is received from the far end. Furthermore, although FIG. 7 shows the microphone signal as a digital signal output by A/D converter 710 and converted into the frequency domain by FFT component 712, the term “microphone signal” is to be broadly construed to encompass any audio signal originating from a microphone, regardless of whether such signal is in digital or analog form, regardless of whether such signal is represented in the time domain or frequency domain, and regardless of whether such signal has been processed after it is generated by the microphone.

At step 1504, the far-end speech signal is utilized to generate an estimated linear acoustic echo signal. In example system 700 of FIG. 7, this step may also be performed by first FDAEC 716, which operates to utilize the frequency domain representation of x(n) as a reference signal for obtaining an estimated linear acoustic echo signal.

At step 1506, the estimated linear acoustic echo signal is subtracted from the microphone signal to generate a first estimated near-end speech signal. In example system 700 of FIG. 7, this step may also be performed by first FDAEC 716, which subtracts the estimated linear acoustic echo signal from the microphone signal in the frequency domain, thereby generating a first estimated near-end speech signal.

At step 1508, a preprocessing function is applied to the far-end speech signal to generate a non-linear acoustic echo reference signal. In example system 700 of FIG. 7, this step may be performed by preprocessor 718, which operates to apply a preprocessing function f _(b) (•) to far-end speech signal x(n) to generate a non-linear acoustic echo reference signal. As shown in FIG. 8, this step may also be performed by a memoryless limiter 802. As also discussed above, in certain embodiments, the preprocessing function that is applied to the far-end speech signal may be an adaptive preprocessing function. For example, as discussed above in reference to system 1300 of FIG. 13, preprocessor 718 may apply a steepest descent adaptation of a preprocessing function.

At step 1510, the non-linear acoustic echo reference signal is utilized to generate an estimated non-linear acoustic echo signal. In example system 700 of FIG. 7, this step may be performed by second FDAEC 722 which utilizes a frequency domain representation of the non-linear acoustic echo reference signal to obtain an estimated non-linear acoustic echo signal.

At step 1512, the estimated non-linear acoustic echo signal is subtracted from the first estimated near-end speech signal to generate a second estimated near-end speech signal. In example system 700 of FIG. 7, this step may also be performed by second FDAEC 722, which subtracts the estimated non-linear acoustic echo signal from the first estimated near-end speech signal output by first FDAEC 716 in the frequency domain, thereby generating a second estimated near-end speech signal.

In one embodiment, step 1504 comprises generating the estimated linear acoustic echo signal by filtering the far-end speech signal with a filter that is determined from estimated statistics associated with the far-end speech signal and the microphone signal.

In an alternate embodiment, step 1504 comprises generating the estimated linear acoustic echo signal by passing each of a plurality of frequency components of a frequency domain representation of the far-end speech signal through a respective one of a plurality of time direction filters, wherein the filter taps associated with each time direction filter are determined from estimated statistics associated with the far-end speech signal and the microphone signal.

In another embodiment, step 1510 comprises generating the estimated non-linear acoustic echo signal by filtering the non-linear acoustic echo reference signal with a filter that is determined from estimated statistics associated with the non-linear acoustic echo reference signal and the first estimated near-end speech signal. It is to be understood that the filtering described in this step may comprise either convolution in the time domain with the impulse response or multiplication in the frequency domain with the frequency domain representation of the impulse response.

In a further embodiment, step 1510 comprises generating the estimated non-linear acoustic echo signal by passing each of a plurality of frequency components of a frequency domain representation of the non-linear acoustic echo reference signal through a respective one of a plurality of time direction filters, wherein the filter taps associated with each time direction filter are determined from estimated statistics associated with the non-linear acoustic echo reference signal and the first estimated near-end speech signal.

In certain embodiments, step 1504 comprises generating the estimated linear acoustic echo signal based at least in part on statistics associated with the far-end speech signal and the microphone signal. In further accordance with such embodiments, the statistics may be updated at a rate determined at least in accordance with a measure of coherence between the far-end speech signal and the microphone signal. The update rate may be determined on a frequency bin basis based on a measure of coherence between the far-end speech signal and the microphone signal for each frequency bin.

In another embodiment, step 1504 and step 1506 comprise: (i) generating a first estimated linear acoustic echo signal based at least in part on statistics associated with the far-end speech signal and the microphone signal that are updated in accordance with an adaptive update rate; (ii) generating a first signal by subtracting the first estimated linear acoustic echo signal from the microphone signal; (iii) generating a second estimated linear acoustic echo signal based at least in part on statistics associated with the far-end speech signal and the microphone signal that are updated in accordance with a fixed update rate; (iv) generating a second signal by subtracting the second estimated linear acoustic echo signal from the microphone signal; and (v) generating the first estimated near-end speech signal by selecting for each of a plurality of frequency bins a lower-power frequency component from among a frequency component of the first signal and a frequency component of the second signal.

In a further embodiment, step 1506 comprises generating a first signal by subtracting the estimated linear acoustic echo signal from the microphone signal and generating the first estimated near-end speech signal by selecting for each of a plurality of frequency bins a lower-power frequency component from among a frequency component of the first signal and a frequency component of the microphone signal.

In certain embodiments, step 1510 comprises generating the estimated non-linear acoustic echo signal based at least in part on statistics associated with the non-linear acoustic echo reference signal and the first estimated near-end speech signal. In further accordance with such embodiments, the statistics may be updated at a rate determined at least in accordance with a measure of coherence between the non-linear acoustic echo reference signal and the first estimated near-end speech signal. The update rate may be determined on a frequency bin basis based on a measure of coherence between the non-linear acoustic echo reference signal and the first estimated near-end speech signal for each frequency bin.

In another embodiment, step 1510 and step 1512 comprise: (i) generating a first estimated non-linear acoustic echo signal based at least in part on statistics associated with the non-linear acoustic echo reference signal and the first estimated near-end speech signal that are updated in accordance with an adaptive update rate; (ii) generating a first signal by subtracting the first estimated non-linear acoustic echo signal from the first estimated near-end speech signal; (iii) generating a second estimated non-linear acoustic echo signal based at least in part on statistics associated with the non-linear acoustic echo reference signal and the first estimated near-end speech signal that are updated in accordance with a fixed update rate; (iv) generating a second signal by subtracting the second estimated non-linear acoustic echo signal from the first estimated near-end speech signal; and (v) generating the second estimated near-end speech signal by selecting for each of a plurality of frequency bins a lower-power frequency component from among a frequency component of the first signal and a frequency component of the second signal.

In a further embodiment, step 1512 comprises generating a first signal by subtracting the estimated non-linear acoustic echo signal from the first estimated near-end speech signal and generating the second estimated near-end speech signal by selecting for each of a plurality of frequency bins a lower-power frequency component from among a frequency component of the first signal and a frequency component of the first estimated near-end speech signal.

3. Example Computer System Implementation

Each of the systems and methods described above may be implemented in hardware, by software executed by a processing unit, or by a combination thereof. In particular, each of systems 100, 200, 300, 500, 600, 700, 800, 900, 1100 and 1300 and each of the steps of flowchart 400 and flowchart 1500 may be implemented in hardware, by software executed by a processing unit, or by a combination thereof.

Where elements or steps described herein are implemented by software executed by a processing unit, such elements or steps may be implemented by one or more processor-based computer systems. An example of such a computer system 1600 is depicted in FIG. 16.

As shown in FIG. 16, computer system 1600 includes a processing unit 1604 that includes one or more processors or processor cores. Processor unit 1604 is connected to a communication infrastructure 1602, which may comprise, for example, a bus or a network.

Computer system 1600 also includes a main memory 1606, preferably random access memory (RAM), and may also include a secondary memory 1620. Secondary memory 1620 may include, for example, a hard disk drive 1622, a removable storage drive 1624, and/or a memory stick. Removable storage drive 1624 may comprise a floppy disk drive, a magnetic tape drive, an optical disk drive, a flash memory, or the like. Removable storage drive 1624 reads from and/or writes to a removable storage unit 1628 in a well-known manner. Removable storage unit 1628 may comprise a floppy disk, magnetic tape, optical disk, or the like, which is read by and written to by removable storage drive 1624. As will be appreciated by persons skilled in the relevant art(s), removable storage unit 1628 includes a computer-readable storage medium having stored therein computer software and/or data.

In alternative implementations, secondary memory 1620 may include other similar means for allowing computer programs or other instructions to be loaded into computer system 1600. Such means may include, for example, a removable storage unit 1630 and an interface 1626. Examples of such means may include a program cartridge and cartridge interface (such as that found in video game devices), a removable memory chip (such as an EPROM, or PROM) and associated socket, and other removable storage units 1630 and interfaces 1626 which allow software and data to be transferred from the removable storage unit 1630 to computer system 1600.

Computer system 1600 may also include a communication interface 1640. Communication interface 1640 allows software and data to be transferred between computer system 1600 and external devices. Examples of communication interface 1640 may include a modem, a network interface (such as an Ethernet card), a communications port, a PCMCIA slot and card, or the like. Software and data transferred via communication interface 1640 are in the form of signals which may be electronic, electromagnetic, optical, or other signals capable of being received by communication interface 1640. These signals are provided to communication interface 1640 via a communication path 1642. Communications path 1642 carries signals and may be implemented using wire or cable, fiber optics, a phone line, a cellular phone link, an RF link and other communications channels.

As used herein, the terms “computer program medium” and “computer readable medium” are used to generally refer to non-transitory media such as removable storage unit 1628, removable storage unit 1630 and a hard disk installed in hard disk drive 1622. Computer program medium and computer readable medium can also refer to non-transitory memories, such as main memory 1606 and secondary memory 1620, which can be semiconductor devices (e.g., DRAMs, etc.). These computer program products are means for providing software to computer system 1600.

Computer programs (also called computer control logic, programming logic, or logic) are stored in main memory 1606 and/or secondary memory 1620. Computer programs may also be received via communication interface 1640. Such computer programs, when executed, enable the computer system 1600 to implement features of the various embodiments discussed herein. Accordingly, such computer programs represent controllers of the computer system 1600. Where an embodiment is implemented using software, the software may be stored in a computer program product and loaded into computer system 1600 using removable storage drive 1624, interface 1626, or communication interface 1640.

The embodiments described herein are also directed to computer program products comprising software stored on any computer readable medium. Such software, when executed in one or more data processing devices, causes a data processing device(s) to operate as described herein. Embodiments described herein may employ any computer readable medium, known now or in the future. Examples of computer readable mediums include, but are not limited to, primary storage devices (e.g., any type of random access memory) and secondary storage devices (e.g., hard drives, floppy disks, CD ROMS, zip disks, tapes, magnetic storage devices, optical storage devices, MEMs, nanotechnology-based storage device, etc.).

4. Conclusion

While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example only, and not limitation. It will be understood by those skilled in the relevant art(s) that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

For example, the present invention has been described above with the aid of functional building blocks and method steps illustrating the performance of specified functions and relationships thereof. The boundaries of these functional building blocks and method steps have been arbitrarily defined herein for the convenience of the description. Alternate boundaries can be defined so long as the specified functions and relationships thereof are appropriately performed. Any such alternate boundaries are thus within the scope and spirit of the claimed invention. One skilled in the art will recognize that these functional building blocks can be implemented by discrete components, application specific integrated circuits, processors executing appropriate software and the like or any combination thereof. Thus, the breadth and scope of the present invention should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents. 

What is claimed is:
 1. An echo cancellation system, comprising: a filter that is configured to process a far-end audio signal in accordance with one or more filter parameters to generate an estimated echo signal; filter parameter determination logic that is configured to update estimated statistics associated with the far-end audio signal and a microphone signal based on instantaneous statistics associated with the far-end audio signal and the microphone signal, and calculate the one or more filter parameters based upon the updated estimated statistics; and a combiner that is configured to generate an estimated near-end audio signal by subtracting the estimated echo signal from the microphone signal.
 2. The echo cancellation system of claim 1, wherein the filter processes a frequency-domain representation of the far-end audio signal.
 3. The echo cancellation system of claim 1, wherein the filter comprises a hybrid frequency-domain filter that generates the estimated echo signal by passing each of a plurality of frequency components of a frequency-domain representation of the far-end audio signal through a respective one of a plurality of time direction filters.
 4. The echo cancellation system of claim 1, wherein the filter parameter determination logic is configured to update estimated statistics of the far-end audio signal based on instantaneous statistics of the far-end audio signal and update estimated cross-channel statistics of the far-end audio signal and the microphone signal based on instantaneous cross-channel statistics of the far-end audio signal and the microphone signal.
 5. The echo cancellation system of claim 4, wherein the instantaneous statistics of the far-end audio signal for a particular frequency bin are determined by at least multiplying a complex conjugate of a spectrum of the far-end audio signal for a particular frame and the particular frequency bin by a spectrum of the far-end audio signal for the particular frame and the particular frequency bin.
 6. The echo cancellation system of claim 4, wherein the instantaneous cross-channel statistics of the far-end audio signal and the microphone signal for a particular frequency bin are determined by at least multiplying a spectrum of the far-end audio signal for a particular frame and the particular frequency bin by a complex conjugate of a spectrum of the microphone signal for the particular frame and the particular frequency bin.
 7. The echo cancellation system of claim 1, wherein the filter parameter determination logic is configured to update the estimated statistics at a rate determined at least in accordance with a measure of coherence between the far-end audio signal and the microphone signal.
 8. The system of claim 1, wherein the filter parameter determination logic is configured to generate a first estimated echo signal based at least in part on estimated statistics associated with the far-end audio signal and the microphone signal that are updated in accordance with an adaptive update rate and generate a second estimated echo signal based at least in part on estimated statistics associated with the far-end audio signal and the microphone signal that are updated in accordance with a fixed update rate; and wherein the combiner is configured to generate a first signal by subtracting the first estimated echo signal from the microphone signal, to generate a second signal by subtracting the second estimated echo signal from the microphone signal, and to generate the estimated near-end audio signal by selecting for each of a plurality of frequency bins a frequency component from among a frequency component of the first signal and a frequency component of the second signal.
 9. The system of claim 1, wherein the combiner is configured to: generate a first signal by subtracting the estimated echo signal from the microphone signal; and generate the estimated near-end audio signal by selecting for each of a plurality of frequency bins a frequency component from among a frequency component of the first signal and a frequency component of the microphone signal.
 10. The system of claim 1, wherein the filter parameter determination logic is configured to generate a first estimated echo signal based at least in part on estimated statistics associated with the far-end audio signal and the microphone signal that are updated in accordance with an adaptive update rate and generate a second estimated echo signal based at least in part on estimated statistics associated with the far-end audio signal and the microphone signal that are updated in accordance with a fixed update rate; and wherein the combiner is configured to generate a first signal by subtracting the first estimated echo signal from the microphone signal, to generate a second signal by subtracting the second estimated echo signal from the microphone signal, and to generate the estimated near-end audio signal by selecting for each of a plurality of frequency bins a frequency component from among a frequency component of the first signal, a frequency component of the second signal, and a frequency component of the microphone signal.
 11. A method for performing echo cancellation, comprising: receiving a far-end audio signal and a microphone signal; updating estimated statistics associated with the far-end audio signal and the microphone signal based on instantaneous statistics associated with the far-end audio signal and the microphone signal; calculating one or more filter parameters based upon the updated estimated statistics; filtering the far-end audio signal in accordance with the one or more filter parameters to generate an estimated echo signal; and generating an estimated near-end audio signal by subtracting the estimated echo signal from the microphone signal.
 12. The method of claim 11, wherein filtering the far-end audio signal comprises filtering a frequency-domain representation of the far-end audio signal.
 13. The method of claim 11, wherein filtering the far-end audio signal comprises passing each of a plurality of frequency components of a frequency-domain representation of the far-end audio signal through a respective one of a plurality of time direction filters.
 14. The method of claim 11, wherein updating the estimated statistics comprises: updating estimated statistics of the far-end audio signal based on instantaneous statistics of the far-end audio signal; and updating estimated cross-channel statistics of the far-end audio signal and the microphone signal based on instantaneous cross-channel statistics of the far-end audio signal and the microphone signal.
 15. The method of claim 14, further comprising: determining the instantaneous statistics of the far-end audio signal for a particular frequency bin by at least multiplying a complex conjugate of a spectrum of the far-end audio signal for a particular frame and the particular frequency bin by a spectrum of the far-end audio signal for the particular frame and the particular frequency bin.
 16. The method of claim 14, further comprising: determining the instantaneous cross-channel statistics of the far-end audio signal and the microphone signal for a particular frequency bin by at least multiplying a spectrum of the far-end audio signal for a particular frame and the particular frequency bin by a complex conjugate of a spectrum of the microphone signal for the particular frame and the particular frequency bin or by at least multiplying a complex conjugate of the spectrum of the far-end audio signal for the particular frame and the particular frequency bin by the spectrum of the microphone signal for the particular frame and the particular frequency bin.
 17. The method of claim 11, wherein updating the estimated statistics comprises updating the estimated statistics at a rate determined at least in accordance with a measure of coherence between the far-end audio signal and the microphone signal.
 18. The method of claim 11, wherein generating the estimated near-end audio signal comprises: generating a first estimated echo signal based at least in part on estimated statistics associated with the far-end audio signal and the microphone signal that are updated in accordance with an adaptive update rate, generating a second estimated echo signal based at least in part on estimated statistics associated with the far-end audio signal and the microphone signal that are updated in accordance with a fixed update rate; generating a first signal by subtracting the first estimated echo signal from the microphone signal; generating a second signal by subtracting the second estimated echo signal from the microphone signal; and generating the estimated near-end audio signal by selecting for each of a plurality of frequency bins a frequency component from among a frequency component of the first signal and a frequency component of the second signal.
 19. The method of claim 11, wherein generating the estimated near-end audio signal comprises: generating a first signal by subtracting the estimated echo signal from the microphone signal; and generating the estimated near-end audio signal by selecting for each of a plurality of frequency bins a frequency component from among a frequency component of the first signal and a frequency component of the microphone signal.
 20. A computer program product comprising a computer-readable storage medium having computer logic recorded thereon, the computer logic being executable by a processing unit to cause the processing unit to perform steps comprising: receiving a far-end audio signal and a microphone signal; updating estimated statistics associated with the far-end audio signal and the microphone signal based on instantaneous statistics associated with the far-end audio signal and the microphone signal; calculating one or more filter parameters based upon the updated estimated statistics; filtering the far-end audio signal in accordance with the one or more filter parameters to generate an estimated echo signal; and generating an estimated near-end audio signal by subtracting the estimated echo signal from the microphone signal. 